Initiate deposit
The deposit endpoint allows you to request a payment from a customer.
Check the guide!
Follow the step-by-step guide on how to build a payment flow using deposits.
- This API call is idempotent, which means it is safe to submit a request with the same
depositId
multiple times. - Duplicate requests with the same
depositId
will be ignored with theDUPLICATE_IGNORED
status in the response. - Since the request can be rejected, you must check the
status
in the response for each submitted request. ThefailureReason
in the response will contain information about the reason of the rejection.
Each request can get one of the statuses on initiation:
Status | Description | |
---|---|---|
ACCEPTED | Yes | The deposit request has been accepted by pawaPay for processing. |
REJECTED | No | The deposit request has been rejected. See failureReason for details. |
DUPLICATE_IGNORED | No | The deposit request has been ignored as a duplicate of an already accepted deposit request. Duplication logic relies upon depositId . |
How to find out the final status of this deposit?
As the pawaPay Merchant API is an asynchronous API, you can find out the final status of the ACCEPTED
deposit by either:
Waiting for a callback
If you have configured callbacks, the callback with the final status of the deposit will be delivered to your callback URL.
Checking the status
Or poll the Check Deposit Status
endpoint.
Headers related to signatures must only be included if you have enabled “Only accept signed requests”. Read more about it from the pawaPay Dashboard documentation.
Authorizations
See Authentication.
Headers
SHA-256 or SHA-512 hash of the request body.
Body
Response
Request has valid payload. See 'status' to confirm if payment was accepted for processing.
The response is of type object
.