POST api/Merchant/v1/UpdatePurchaseDelivered
Method updates the purchase delivered for end customer and triggers the payment and invoice delivery.
Request Information
URI Parameters
None.
Body Parameters
UpdatePurchaseDeliveredRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| purchaseId |
Id of purchase (M) |
globally unique identifier |
None. |
| OrganizationCode | string |
None. |
|
| UserName | string |
None. |
|
| Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"purchaseId": "4cc6b6af-b66e-4a73-a41d-a12369697e66",
"OrganizationCode": "sample string 2",
"UserName": "sample string 3",
"Password": "sample string 4"
}
application/xml, text/xml
Sample:
<UpdatePurchaseDeliveredRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers.Merchant"> <OrganizationCode xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 2</OrganizationCode> <Password xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 4</Password> <UserName xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 3</UserName> <purchaseId>4cc6b6af-b66e-4a73-a41d-a12369697e66</purchaseId> </UpdatePurchaseDeliveredRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UpdatePurchaseDeliveredReply| Name | Description | Type | Additional information |
|---|---|---|---|
| Reply | PurchaseReply |
None. |
|
| Ok | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorCode | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Reply": {
"Id": "50cd6e25-d7ac-4675-9fa5-1aee5b30c335",
"PurchaseProcessUrl": "sample string 2",
"Status": 0
},
"Ok": true,
"ErrorMessage": "sample string 2",
"ErrorCode": "sample string 3",
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<UpdatePurchaseDeliveredReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers.Merchant">
<ErrorCode xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 3</ErrorCode>
<ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 2</ErrorMessage>
<Message xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">sample string 4</Message>
<Ok xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">true</Ok>
<Reply>
<Id>50cd6e25-d7ac-4675-9fa5-1aee5b30c335</Id>
<PurchaseProcessUrl>sample string 2</PurchaseProcessUrl>
<Status>Ok</Status>
</Reply>
</UpdatePurchaseDeliveredReply>