PSP Settlement IntentsBeta
A PSP settlement intent represents a settlement with a PSP in a particular currency. Each PSP settlement intent is associated with one or more PSP settlement deposits by settlement_reference.
After creating your PSP settlement intent, you can start splitting it, creating one PSP settlement split for each target account. Once you complete splitting your PSP settlement intent, you can submit it and wait for it to be matched with the associated PSP settlement deposit. The sum of the amounts of the PSP settlement splits of a PSP settlement intent should match the sum of the amounts of associated deposits.
PSP settlement intents form part of the PSP-agnostic payout solution .
POST /api/v1/psp_settlement_intents/{id}/updatePOST /api/v1/psp_settlement_intents/createGET /api/v1/psp_settlement_intents/{id}POST /api/v1/psp_settlement_intents/{id}/cancelPOST /api/v1/psp_settlement_intents/{id}/submitGET /api/v1/psp_settlement_intents
Update a PSP settlement intent
POST /api/v1/psp_settlement_intents/{id}/update
Use this endpoint to update a PSP settlement intent data.
PSP settlement intent values can only be updated if the current status is NEW, ACTION_REQUIRED or SUBMITTED.
Updating any of the fields associate_by_deposit_ids, currency, global_account_id or settlement_reference on a PSP settlement intent in status ACTION_REQUIRED changes the status to SUBMITTED.
Unique identifier of the PSP settlement intent to update
Unique identifiers of the deposits associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Currency (3-letter ISO-4217 code) of this PSP settlement intent
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone
Global account unique identifier that will accept the funds for this PSP settlement intent
A set of key-value pairs that you can attach to this PSP settlement intent. This can be useful for storing additional information about it in a structured format.
Unique request identifier. Max length 50 characters.
The PSP settlement reference field refers to the reference attached by the pay-in PSP when sending the deposit to Airwallex. The pay-in PSP typically also includes this reference in settlement reports. Airwallex uses this field to match the PSP settlement splits you have created with funds received from the PSP. Min length 5 characters. Max length 255 characters.
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents/psp_settlement_intent_id/update' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "associate_by_deposit_ids": [],> "currency": "USD",> "expected_settlement_date": "2022-08-26",> "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",> "metadata": {},> "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",> "settlement_reference": "PMT1936398">}'
1{2 "associate_by_deposit_ids": [],3 "associated_deposit_ids": [],4 "created_at": "2022-09-22T16:08:02+1100",5 "currency": "AUD",6 "expected_settlement_date": "2022-08-26",7 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",8 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",9 "metadata": {},10 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",11 "requirements": {12 "matching_psp_settlement_required": {13 "message": "<string>"14 },15 "reference_disambiguation_required": {16 "message": "<string>"17 }18 },19 "settlement_reference": "PMT1936398",20 "status": "NEW"21}
Create a new PSP settlement intent
POST /api/v1/psp_settlement_intents/create
Use this endpoint to share data with Airwallex on the settlement to be deposited by the PSP.
Data on a PSP Settlement should be shared with Airwallex before the pay-in PSP deposits funds into the holding account.
PSP settlement intent is created with initial status NEW.
Unique identifiers of the deposits associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Currency (3-letter ISO-4217 code) of this PSP settlement intent
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone
Global account unique identifier that will accept the deposit for this PSP settlement intent
A set of key-value pairs that you can attach to this PSP settlement intent. This can be useful for storing additional information about it in a structured format.
Unique request identifier. Max length 50 characters
The PSP settlement reference field refers to the reference attached by the pay-in PSP when sending the deposit to Airwallex. The pay-in PSP typically also includes this reference in settlement reports. Airwallex uses this field to match the PSP settlement splits you have created with funds received from the PSP. Min length 5 characters. Max length 255 characters.
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents/create' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "associate_by_deposit_ids": [],> "currency": "USD",> "expected_settlement_date": "2022-08-26",> "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",> "metadata": {},> "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",> "settlement_reference": "PMT1936398">}'
1{2 "associate_by_deposit_ids": [],3 "associated_deposit_ids": [],4 "created_at": "2022-09-22T16:08:02+1100",5 "currency": "AUD",6 "expected_settlement_date": "2022-08-26",7 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",8 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",9 "metadata": {},10 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",11 "requirements": {12 "matching_psp_settlement_required": {13 "message": "<string>"14 },15 "reference_disambiguation_required": {16 "message": "<string>"17 }18 },19 "settlement_reference": "PMT1936398",20 "status": "NEW"21}
Get a PSP settlement intent by ID
GET /api/v1/psp_settlement_intents/{id}
Get details for a PSP settlement intent by specifying the intent unique identifier.
Unique identifier of the PSP settlement intent to retrieve
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 404 | NOT FOUND |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents/psp_settlement_intent_id' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "associate_by_deposit_ids": [],3 "associated_deposit_ids": [],4 "created_at": "2022-09-22T16:08:02+1100",5 "currency": "AUD",6 "expected_settlement_date": "2022-08-26",7 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",8 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",9 "metadata": {},10 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",11 "requirements": {12 "matching_psp_settlement_required": {13 "message": "<string>"14 },15 "reference_disambiguation_required": {16 "message": "<string>"17 }18 },19 "settlement_reference": "PMT1936398",20 "status": "NEW"21}
Cancel a PSP settlement intent by ID
POST /api/v1/psp_settlement_intents/{id}/cancel
Use this endpoint to cancel a PSP Settlement intent.
If the PSP settlement intent has been cancelled already or matched or settled with the corresponding PSP settlement deposit, then it cannot be cancelled.
Unique identifier of the PSP settlement intent to cancel
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 404 | NOT FOUND |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents/psp_settlement_intent_id/cancel' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "associate_by_deposit_ids": [],3 "associated_deposit_ids": [],4 "created_at": "2022-09-22T16:08:02+1100",5 "currency": "AUD",6 "expected_settlement_date": "2022-08-26",7 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",8 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",9 "metadata": {},10 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",11 "requirements": {12 "matching_psp_settlement_required": {13 "message": "<string>"14 },15 "reference_disambiguation_required": {16 "message": "<string>"17 }18 },19 "settlement_reference": "PMT1936398",20 "status": "NEW"21}
Submit a PSP settlement intent by ID
POST /api/v1/psp_settlement_intents/{id}/submit
Submit a PSP settlement intent.
This means all PSP settlement split information for a PSP settlement intent has been provided, and it is ready to be matched with a PSP settlement deposit.
Unique identifier of the PSP settlement intent to submit
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 404 | NOT FOUND |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents/psp_settlement_intent_id/submit' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "associate_by_deposit_ids": [],3 "associated_deposit_ids": [],4 "created_at": "2022-09-22T16:08:02+1100",5 "currency": "AUD",6 "expected_settlement_date": "2022-08-26",7 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",8 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",9 "metadata": {},10 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",11 "requirements": {12 "matching_psp_settlement_required": {13 "message": "<string>"14 },15 "reference_disambiguation_required": {16 "message": "<string>"17 }18 },19 "settlement_reference": "PMT1936398",20 "status": "NEW"21}
Get a list of PSP settlement intents
GET /api/v1/psp_settlement_intents
Get a list of PSP settlement intents created by your account. The intents returned are sorted by creation time in descending order.
The start date of created_at in ISO8601 format (inclusive)
Global account unique identifier of the PSP settlement intents
Page number, starts from 0
Number of results per page. Default value is 100, minimum 10, maximum 100
Settlement reference that has been specified while creating PSP settlement intents
PSP Settlement Intent status. One of NEW, SUBMITTED, MATCHED, ACTION_REQUIRED, SETTLED, CANCELLED
The end date of created_at in ISO8601 format (inclusive)
A flag which identifies whether there are more results.
Paged results.
Unique identifiers of the deposits that should be associated with this PSP settlement intent. If present, these will be used instead of the settlement_reference field to associate deposits with this intent.
Unique identifiers of the deposits currently associated with this PSP settlement intent. If associate_by_deposit_ids is not empty, then these have been associated based on that list. Otherwise, they are associated by reference.
The time this PSP settlement intent was created
Currency (3-letter ISO-4217 code) specified in the request
Expected date on which these funds will be deposited by the PSP into the global account, in YYYY-MM-DD format in the UTC timezone.
The unique identifier of the global account in which this settlement will be deposited.
Unique identifier for the PSP settlement intent
A set of key-value pairs that you can attach to the PSP settlement intent
Unique request identifier specified in the request
Further actions required in order to proceed with this settlement intent
Funds have been received that correspond to this PSP settlement intent, but the total amounts do not match
Information about this requirement
PSP settlement deposit reference corresponds to multiple PSP settlement intents
The reference value expected to be included by the PSP in its PSP settlement deposit.
Status of the PSP settlement intent. One of: NEW, SUBMITTED, ACTION_REQUIRED, MATCHED, SETTLED
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 | Possible errors: |
| 429 | Too many requests |
| 500 | Service unavailable |
$curl --request GET \> --url 'https://api-demo.airwallex.com/api/v1/psp_settlement_intents' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "has_more": false,3 "items": [4 {5 "associate_by_deposit_ids": [],6 "associated_deposit_ids": [],7 "created_at": "2022-09-22T16:08:02+1100",8 "currency": "AUD",9 "expected_settlement_date": "2022-08-26",10 "global_account_id": "3f457fe5-daf4-9962-92ec-10332301d9p3",11 "id": "psi_0iBwL9IuOZaKCz8Kn-01ew",12 "request_id": "7f687fe6-dcf4-4462-92fa-80335301d9d2",13 "settlement_reference": "PMT1936398",14 "status": "NEW"15 }16 ]17}