My Products
Help

can't release a customer payment

by Thomas Adrian - Consili

Hello

I am trying to release a customer payment using POST

 

{{Url}}/v1/customerpayment/400407/action/release

and get the message "message": "Document type must be specified in the releaseActionDto ."

 

 

I also noticed that If I try to release the payment in the UI, the payment is released but not closed. and no errors

 

The payment was previoulsy created using the following json. 

 

{
  "referenceNumber": null,
  "type": {
    "value": "Payment"
  },
  "hold": null,
  "applicationDate": null,
  "applicationPeriod": null,
  "paymentRef": {
    "value": "PSRID INV 000870"
  },
  "customer": {
    "value": "10002"
  },
  "location": null,
  "paymentMethod": null,
  "cashAccount": null,
  "currency": null,
  "paymentAmount": {
    "value": 200.0
  },
  "invoiceText": null,
  "branch": null,
  "ordersToApply": null,
  "paymentLines": null
}

 

 

1 REPLY 1
Accepted solution
Thomas Adrian - Consili
CHAMPION *

by Thomas Adrian - Consili

my bad, didn't include the document type