curl --request GET \
--url https://production.waivr.co/api/waivr-app/v1/merchants/merchantUid/settings/summary \
--header 'Accept: application/json' \
--header Authorization: <your key><your secret>' \
--header 'reqSessionId: a93bdaf7-fe24-4304-986f-e1a12d840d8b'
{
"createDate": "2022-12-12T19:57:44.438588476Z",
"discount": {
"payment": 2
},
"uid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
curl --request post \
--url https://production.waivr.co/api/waivr-app/v1/customers \
--data
{
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"email": "john.snow@northwall.co",
"firstName": "John",
"lastName": "Snow",
"phoneNumber": "14444444444",
"address": {
"line1": "62 Blackwater Bay",
"line2": "",
"city": "King's Landing",
"state": "Seven Kingdom",
"country": "Westeros",
"zipCode": "29812"
}
}
{
"uid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"createDate": "2022-12-12T19:57:44.438588476Z",
"updateDate": "2022-12-12T19:57:44.623806274Z",
"email": "john.snow@northwall.co",
"firstName": "John",
"lastName": "Snow",
"phoneNumber": "14444444444",
"address": {
"line1": "62 Blackwater Bay",
"line2": null,
"city": "King's Landing",
"state": "Seven Kingdom",
"country": "Westeros",
"zipCode": "29812"
}
}
curl --request post \
--url https://production.waivr.co/api/waivr-app/v1/connectaccounts/render \
--data '
{
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"redirectUrl": "https://winterfell.co/kingOfTheNorth"
}
'
curl --request post \
--url https://production.waivr.co/api/waivr-app/v1/connectaccounts/connect \
--data '
{
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"institution": {
"accountIdentifier": "BA66MD4Q7KFgrm9lXJJPcbK1ZPkW1xcAMmeRW"
},
"publicToken": "public-sandbox-4aa91553-561e-4bd6-ac59-d9d8f643fdce"
}
'
{
"type": "PLAID",
"linkingAccessToken": "link-sandbox-f152b8ad-01e6-445f-b085-a1cfa2c3977d",
"validUntil": "2022-12-13T00:07:18Z",
}
}
curl --request post \
--url https://production.waivr.co/api/waivr-app/v2/paymentinstructions \
--data '{
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"enableOptimalBillingDate": true,
"instructions": [
{
"subtotalAmount": 17.54,
"amount": 8.42,
"discountPercentage": 52,
"externalReferenceIdentifier": "pos-ref-19fbb695-ebe6-4c84-a32d-15403fed7ccc",
"frequency": {
"cycle": "MONTHLY",
"recurrence": 1
},
"nextBillingDate": "2023-01-12T19:57:44.623806274Z",
"recurringEndDate": "2023-12-12T19:57:44.623806274Z"
}
],
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f"
}'
{
"createDate": "2022-12-12T19:57:44.438588476Z",
"instructions": [
{
"subtotalAmount": 8.42,
"amount": 17.54,
"createDate": "2022-12-12T19:57:44.438588476Z",
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"enableOptimalBillingDate": false,
"externalReferenceIdentifier": "pos-ref-19fbb695-ebe6-4c84-a32d-15403fed7ccc",
"frequency": {
"cycle": "MONTHLY",
"recurrence": 1
},
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"metadata": {
"optimalBillingDateAnalysis": {
"basedNextBillingDate": "2022-02-12T19:57:44.623806274Z",
"optimalBillingDates": [
"2022-02-11T19:57:44.623806274Z",
"2022-02-12T19:57:44.623806274Z",
"2022-02-13T19:57:44.623806274Z"
]
}
},
"nextBillingDate": "2023-01-12T19:57:44.623806274Z",
"recurringEndDate": "2023-12-12T19:57:44.623806274Z",
"status": "PENDING",
"uid": "34663686-3e7a-4b35-8412-357d6247273f",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
],
"uid": "34663686-3e7a-4b35-8412-357d6247273f",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
curl --request GET \
--url https://production.waivr.co/api/waivr-app/v1/paymentinstructions/{paymentInstructionUid} \
--header 'Accept: application/json' \
--header 'Authorization: string' \
--header 'Content-Type: application/json'
curl --request patch \
--url https://production.waivr.co/api/waivr-app/v1/paymentinstructions/{paymentInstructionUid} \
--data '
{
"subtotalAmount": 6.99,
"amount": 12.99,
"frequency": {
"cycle": "MONTHLY",
"recurrence": 1
},
"status": "INACTIVE",
}
'
curl --request post \
--url https://production.waivr.co/api/waivr-app/v2/payments \
--data '
{
"paymentInstructionGroupUid": "34663686-3e7a-4b35-8412-357d6247273f",
"methodType": "ACH"
}'
[
{
"amount": 17.54,
"createDate": "2022-12-12T19:57:44.438588476Z",
"paymentDate": "2022-12-12T19:57:44.438588476Z",
"status": "NOT_INITIATED",
"uid": "1b536510-29c8-4bde-ad85-047512af90d2",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
]
curl --request post \
--url https://production.waivr.co/api/waivr-app/v1/payments/search \
--data '
{
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"pagination": {
"limit": 1,
"offset": 0
},
"paymentInstructionExternalRefId": "pos-ref-19fbb695-ebe6-4c84-a32d-15403fed7ccc",
"paymentInstructionUid": "34663686-3e7a-4b35-8412-357d6247273f"
}'
{
"content": [
{
"amount": 17.54,
"createDate": "2022-12-12T19:57:44.438588476Z",
"paymentDate": "2022-12-12T19:57:44.438588476Z",
"status": "NOT_INITIATED",
"uid": "1b536510-29c8-4bde-ad85-047512af90d2",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
}
}
curl --request GET \
--url https://production.waivr.co/api/waivr-app/v1/payments/{paymentUid} \
--header 'Accept: application/json' \
--header 'Authorization: <your key> <your secret>' \
--header 'Content-Type: application/json' \
--header 'reqSessionId: 4f505437-20fb-473f-94d9-85920c2a2d55'
{
"amount": 17.54,
"createDate": "2022-12-12T19:57:44.438588476Z",
"paymentDate": "2022-12-12T19:57:44.438588476Z",
"status": "PROCESSED",
"uid": "1b536510-29c8-4bde-ad85-047512af90d2",
"updateDate": "2022-12-12T19:57:44.623806274Z"
}
curl --request post \
url https://production.waivr.co/api/waivr-app/v1/refunds \
--data '
{
"amount": 17.54,
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f"
}
'