Logo
Swift API Sandbox Collections API Documentation

Validates the purpose code.

POST {{baseUrl}}/payment/purpose-code

This request validates the payment purpose code against the list of payment purpose codes available in the SWIFT referential data for the instructed country.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
x-bic
string (Required) BIC of SWIFT as SWIFT is performing the service, centrally. The x-bic value must be swhqbebb.
X-Request-ID
string Unique end-to-end tracking identifier(ID) of the Payment Pre-validation API service request. Payment Pre-validation Users are not required to fill it in for the Payment Pre-validation API request. SWIFT provide the tracking ID which is an uuid as described in IETF RFC 4122 Universally Unique Identifier (UUID) URN Namespace. Pattern - ^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$.
Content-Type
string
Accept
string




RESPONSES

status




<
Curl
curl -X POST 'https://sandbox.swift.com/swift-preval/v2/payment/purpose-code' -H 'x-bic: cclabebb' -H 'X-Request-ID: 0f70dd9b-11d4-1d02-049b-9caee3c80982' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"purpose_code":"VO10100","country_code":"RU"}'

ENDPOINTS