Prior to the request, the "x-santander-client-id" in the header must be configured in PagoNxt Trade to one or more customer_id. A X reference (quote_id as a trade identifier not the quote) is needed to be able to execute the FX and make it firm.
In the query_params, there is a customer_id field, which has the following functionality:
- If for an "x-santander-client-id" there is only one parameterised customer_id in the PagoNxt systems, the query_params does not need to be informed, it would be optional.
- If for an "x-santander-client-id" there is more than one parameterised customer_id in PagoNxt systems, the query_params customer_id becomes mandatory, and additionally the API validates that the customer_id corresponds to those parameterised in PagoNxt Trade, if it does not match, the request is rejected.
OAuth Grant type, Private JWT
Client ID header
Global unique id for the requested trade (trade_id)
Customer identifier
quote execution customer response
{
"quoteId": "709b3c24-902c-4ce2-89a4-46dc68f8448f",
"tradeId": "a627056f-3533-44fb-819d-895db2eb55e1",
"customerId": "pagofx_ukGB847868066",
"ccyPair": "EUR/USD",
"exchangeRate": "1.0505",
"clientSell": {
"amount": "951.93",
"currency": "EUR"
},
"clientBuy": {
"amount": "1000",
"currency": "USD"
},
"valueDate": "2022-01-27",
"valueDateChange": false,
"quoteCreatedAt": "2023-01-27T15:16:42Z",
"tradeCreatedAt": "2023-01-27T15:21:42Z",
"settlementAccounts": {
"debitAccount": {
"accountId": "ES0400490001582916238111",
"currency": "EUR",
"accountType": "IBAN"
},
"creditAccount": {
"accountId": "ES0400490001582916238222",
"currency": "USD",
"accountType": "IBAN"
}
},
"cutoffDebitAccount": "2023-01-27T16:00:00Z"
}quote execution customer response
UUID identification type
UUID identification type
Customer identifier
Currency pair of the requested quote
Fx rate of the requested currency pair. Precision: 5 integer, 8 decimals
Client Sell or Buy Object
Amount on sell / buy detail
currency
Client Sell or Buy Object
Amount on sell / buy detail
currency
Date when the date exchange rate is valid
true when the valueDate logic reported in the input is triggered and there is no price, double call
quote created timestamp of the fx transaction api response
trade created timeStamp
Settlement accounts
Accounts
account identifier
Currency
Account Type (IBAN)
Accounts
account identifier
Currency
Account Type (IBAN)
cut off debit account timeStamp
No Content
Bad request
{
"errors": [
{
"code": "BAD_REQUEST",
"level": "ERROR",
"message": "Bad Request",
"description": "Error validating schema"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unauthorized
{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "Unauthorized",
"level": "ERROR",
"description": "Unauthorized description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Forbidden
{
"errors": [
{
"code": "FORBIDDEN",
"level": "ERROR",
"message": "Forbidden",
"description": "Forbidden description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Not Found
{
"errors": [
{
"code": "NOT_FOUND",
"level": "ERROR",
"message": "Not Found",
"description": "Not Found description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
OWASP
{
"errors": [
{
"code": "NOT_ACCEPTABLE",
"level": "ERROR",
"message": "Not Acceptable",
"description": "Not Acceptable description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Conflict
{
"errors": [
{
"code": "CONFLICT",
"level": "ERROR",
"message": "Conflict",
"description": "Conflict description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Payload Too Large
{
"errors": [
{
"code": "PAYLOAD_TOO_LARGE",
"level": "ERROR",
"message": "Payload Too Large",
"description": "Payload Too Large description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
URI Too Long
{
"errors": [
{
"code": "URI_TOO_LONG",
"level": "ERROR",
"message": "URI Too Long",
"description": "URI Too Long description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unsupported Media Type
{
"errors": [
{
"code": "UNSUPORTED_MEDIA_TYPE",
"level": "ERROR",
"message": "Unsupported Media Type",
"description": "Unsupported Media Type description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unprocessable Entity
{
"errors": [
{
"code": "UNPROCESABLE_ENTITY",
"level": "ERROR",
"message": "Unprocessable Entity",
"description": "Unprocessable Entity description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Too many requests
{
"errors": [
{
"code": "TOO_MANY_REQUEST",
"level": "ERROR",
"message": "Too Many Requests",
"description": "Too Many Requests description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Internal server error
{
"errors": [
{
"code": "INTERNAL_SERVER_ERROR",
"level": "ERROR",
"message": "Internal server error",
"description": "Internal Server Error"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Service unavailable
{
"errors": [
{
"code": "SERVICE_UNAVAILABLE",
"level": "ERROR",
"message": "Service unavailable",
"description": "Service unavailable"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Gateway timeout
{
"errors": [
{
"code": "GATEWAY_TIMEOUT",
"level": "ERROR",
"message": "Gateway timeout",
"description": "Gateway timeout"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unexpected error
{
"errors": [
{
"code": "UNEXPECTED_ERROR",
"level": "ERROR",
"message": "Unexpected error",
"description": "Unexpected error"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue. The possible values are.
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue