curl --request post \
--url https://app.waivr.co/api/waivr-app/v1/customers \
--data @- <<EOF
{
"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"
}
}
EOF
{
"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://app.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://app.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://app.waivr.co/api/waivr-app/v1/paymentinstructions \
--data '
{
"externalReferenceIdentifier": "pos-ref-19fbb695-ebe6-4c84-a32d-15403fed7ccc",
"customerUid": "53db8c10-9f7b-4dde-bb3a-6a9faf190ff6",
"merchantUid": "f021c403-0dbd-4654-9153-2f918579834f",
"amount": "17.54",
"frequency": {
"cycle": "MONTHLY",
"recurrence": "1"
},
"nextBillingDate": "",
"recurringEndDate": "", "enableOptimalBillingDate": "true"
}
'
curl --request GET \
--url https://app.waivr.co/api/waivr-app/v1/paymentinstructions/{paymentInstructionUid} \
--header 'Accept: string' \
--header 'Authorization: string' \
--header 'Content-Type: application/json'
curl --request patch \
--url https://app.waivr.co/api/waivr-app/v1/paymentinstructions/{paymentInstructionUid} \
--data '
{
"status": "INACTIVE",
"amount": "12.99"
}
'
curl --request post \
--url https://app.waivr.co/api/waivr-app/v1/payments \
--data '
{
"paymentInstructionUid": "34663686-3e7a-4b35-8412-357d6247273f",
"methodType": "ACH"
}
'
curl --request post \
--url https://app.waivr.co/api/waivr-app/v1/payments \
--data '
{
"paymentInstructionUid": "34663686-3e7a-4b35-8412-357d6247273f",
"methodType": "ACH"
}
'
curl --request post \
--url https://app.waivr.co/api/waivr-app/v1/payments \
--data '
{
"paymentInstructionUid": "34663686-3e7a-4b35-8412-357d6247273f",
"methodType": "ACH"
}
'