API Reference

Create Send Money API

Request Parameters

FieldTypeMandatoryDescription
externalIdStringMandatoryUnique transaction reference from client. Must be unique per transaction.
amountFloatMandatoryTransfer amount (must be > 0).
currencyStringOptionalSupported values: IDR, MYR. Defaults to IDR if not specified.
senderIdStringMandatoryReference to a verified sender identity belonging to the client.
receiverNameStringMandatoryFull name of the receiver.
receiverAccountNoStringMandatoryNumeric destination account number.
receiverBankCodeStringMandatoryBank code used for disbursement
remarkStringOptionalOptional transaction note, max 140 characters.
metadataStringOptionalCustom key-value pairs. Stored in Paystrator and returned in API/webhook, but never sent to providers. Read more about metadata here.

System Routing Logic

  • In Production:
    • Provider configuration and fallback logic are set in the dashboard.
    • Paystrator automatically routes based on availability, reliability, and type.
  • In Sandbox:
    • Only one provider can be enabled per product per environment.
    • This ensures test consistency.


Error Handling

All error follow this scheme:

...
"error": {
    "code": "<machine_readable_code>",
    "message": "<human readable message>",
    "action": "<what the dev should do>",
    "reason": "<why it happened>"
}
...

HTTP CodeCodeDescriptionAction Needed
400wrong_parameters_in_requestRequired field is missing or invalidCheck your request for a mistake or missing parameter
401permission_deniedUser is not permitted to access the APICheck your Public Access Token or you API Key pair
409invalid_sender_idSender not found or not owned by this clientPlease use the correct sender ID
409invalid_parameters_in_requestA transaction with this external_id already existsPlease use unique externalId
4xx/5xxprovider_errorFailed on provider’s sidePlease contact provider / retry

Language
Credentials
Header
Click Try It! to start a request and see the response here!