From a90f6d3e75ebc9024e490c5aa7869fb6bc5148e2 Mon Sep 17 00:00:00 2001 From: Ian Saunders Date: Fri, 7 Apr 2017 06:16:06 -0600 Subject: [PATCH 1/6] Pushing API Description from Apiary.io --- paysafeapicardpaymentsv1-apiary.apib | 311 +++++++++++++++++++-------- 1 file changed, 219 insertions(+), 92 deletions(-) diff --git a/paysafeapicardpaymentsv1-apiary.apib b/paysafeapicardpaymentsv1-apiary.apib index 2951cda..d565d25 100644 --- a/paysafeapicardpaymentsv1-apiary.apib +++ b/paysafeapicardpaymentsv1-apiary.apib @@ -62,6 +62,18 @@ For example: `https://api.paysafe.com/cardpayments/v1/accounts/{ACCOUNT_ID}` +# Pagination + + +In the case where an API GET request returns multiple results, Paysafe returns the first 10 records by default and uses HATEOAS links to provide page navigation. In addition to the default behavior, it is also possible to control the number of results and starting point by passing in query parameters as follows: + +| Name | Description | +|--- |--- | +| limit | This is the total number of records to return. Max = 50. Default = 10. | +| offset | This is the starting position, where 0 is the first record. Default = 0. | +| startDate | This is the start date in UTC. Default = 30 days before the *endDate*.| +| endDate | This is the end date in UTC. Default = current date and time. | + # Global Invalid Characters You must not include any of the characters in the following table as values in any of your request parameters. If you do, your request will result in an error. @@ -595,7 +607,7 @@ This is additional information about the card acquirer required when you are per |Element |Type |Required |Description | |--- |--- |--- |--- | |authId |string
`length<=36` |Yes |This is the ID returned in the response to a previous successful Authorization or Settlement request.| -|code |enum |Yes |This is the code for your card acquirer. | +|code |string
`length<=10` |Yes |This is the code for your card acquirer.| ```apib { @@ -2056,7 +2068,7 @@ This is how you submit an Authorization request using a payment token. If you us You can use either of two payment token types: -**Note**