The API endpoint (URI or URL) must point to either the Test or the Production (live) environment.
- Test API endpoint: https://api.test.paysafe.com/
For example: https://api.test.paysafe.com/alternatepayments/v1/accounts/account_id/payments
- Production API endpoint: https://api.paysafe.com/
For example: https://api.paysafe.com/alternatepayments/v1/accounts/account_id/payments
API Endpoint Patterns
The API endpoints typically conform to the pattern of the example below:
where account_id is the account number for a specific payment method/currency combination.
Because the Test environment is completely isolated, any changes you perform on your Test accounts configuration may have to be repeated in your Production account. Your production account IDs will also differ from your test account IDs.
You can enable only one alternate payments method per account associated with your merchant account. Each of these accounts must have an associated settlement currency. If you need to use the same alternate payments method with multiple settlement currencies (where available) then you will need a separate account configured for each currency/payment method combination.
The following table lists the major request types supported by the Alternate Payments API.
|API Request||Endpoint Pattern|
|Process a Payment|| |
|Void a Payment|| |
|Look Up a Payment Using a Payment ID|| |
|List Payments Using a merchantRefNum|| |
|Refund a Payment|| |
|Process a Settlement|| |
|Look Up a Settlement Using a Settlement ID|| |
|List Settlements Using a merchantRefNum|| |
|Refund a Settlement|| |
|List Returns|| |
|Look Up a Return Using a Return ID|| |
|List Return Reversals|| |
|Look Up a Return Reversal Using a Return Reversal ID|| |
|Look Up a Refund Using a Refund ID|| |
Look up a Refund Using a merchantRefNum
- In the above examples replace account_id with your unique merchant account number and replace, e.g., payment_id with the unique ID of the original transaction.
- Some API endpoints include multiple parameters. For example, to look up a Settlement, both account_id and settlement_id must be included.