Prior to the request, the "x-santander-client-id" in the header must be configured in PagoNxt Trade to one or more customer_id.
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.
- The fields client_sell_ccy and client_sell_buy are both mandatory, and cannot contain the same ccy, they would be rejected in this case.Client_sell_amount and client_buy_amount are optional fields, but at least one of them must be reported. Must be >0 and cannot be negative values.
- valueDate: is an optional field.
- If not informed, FX nearest ESD (Earliest Settlement Day) is returned.
- If informed, it search for an FX for the given date. If there is no FX for the valueDate informed, nearest FX would be returned, indicating in the API Output the field valueDateChange=true indicating that the value has changed and valueDate= “AAAA-MM-DD” the new valueDate for the FX request is reported.
- A tradeId is returned, FX reference, which will need to be sent in second method/endpoint to be able to execute the FX and make it firm.
OAuth Grant type, Private JWT
Client ID header
Customer identifier
QuoteCustomersRequest
{
"clientSell": {
"amount": "500",
"currency": "EUR"
},
"clientBuy": {
"amount": "1000",
"currency": "USD"
},
"valueDate": "2022-01-27"
}quote Customers Request
Client Sell or Buy Object
Amount on sell / buy detail
currency
Client Sell or Buy Object
Amount on sell / buy detail
currency
ISO 8601 Complete Data format (YYYY-MM-DD):\n YYYY = four-digit year\n MM = two-digit month (01=January, etc.)\n DD = two-digit day of month (01 through 31)
quote customer response
{
"quoteId": "709b3c24-902c-4ce2-89a4-46dc68f8448f",
"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",
"quoteExpiresAt": "2023-01-27T15:21:42Z",
"cutoffDebitAccount": "2023-01-27T16:00:00Z"
}quote customer response
Global unique id for the requested trade
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
Timestamp of the fx transaction api response
Expiration timeStamp of response provided by fx_transactional
cut off debit account timeStamp
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