Skip to main content

Acknowledgement

In order to make sure Ledyer and your order management are in sync we provide the acknowledge API. When receiving a notification call you should get the order, and confirm to ledyer by making a POST request.

Advance invoice

If the payment method of the order is advanceInvoice the order can not be captured before an acknowledgement has been made, in all other cases the order can be updated or captured even before acknowledgement.

  curl -X POST \
-H 'authorization: Basic dGhpcy1pcy10aGUtY2xpZW50LWlkOnRoaXMtaXMtdGhlLXNlY3JldA==' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'Idempotency-Key: da7ca8f9-9155-4721-b5f0-81945bff9e4a' \
-d grant_type=client_credentials \
https://api.sandbox.ledyer.com/v1/orders/:orderId/acknowledge

Request Headers

Idempotency-Key

stringOptional

By providing a unique value for this header, the idempotency of the operation will be guaranteed. This means that retries of requests will be safe to apply in case of network errors, socket errors and timeouts, etc. We recommend using UUID version 4 for the key.