Search agreements by query params
Query parameters
Service id(s)
Limit the results to agreement(s) relating to live (not test) accounts
Gateway account id(s)
Unless set to true, either service_id or account_id field must be completed
Status of agreement
Limit the results to exact matches for the given reference
The reference provided by the service when creating the agreement(s)
Page number of results
Number of results to be displayed
Response
OK
Example response
{
"_links": {
"first_page": {
"href": "https://an.example.link"
},
"last_page": {
"href": "https://an.example.link"
},
"next_page": {
"href": "https://an.example.link"
},
"prev_page": {
"href": "https://an.example.link"
},
"self": {
"href": "https://an.example.link"
}
},
"results": [
{
"payment_instrument": {
"card_details": {
"billing_address": {
"city": "London",
"country": "GB",
"county": "county",
"line1": "address line 1",
"line2": "address line 2",
"postcode": "Ex 8RR"
},
"card_brand": "Visa",
"card_type": "credit",
"cardholder_name": "J Doe",
"expiry_date": "11/43",
"first_digits_card_number": "424242",
"last_digits_card_number": "4242"
}
}
}
]
}Changes
Changed in 4 of the 34 revisions of this API.115
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
- ▲
removed the enum value
EXPIREDfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ○
removed the
EXPIREDenum value from the//response property for the response statusresponse-property-enum-value-removed
- ▲
- ●
added the new
INACTIVEenum value to the//response property for the response statusresponse-property-enum-value-added
- ○
added the new enum value
INACTIVEto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ●
- ○
endpoint added
endpoint-added
- ○