Skip to content

Instantly share code, notes, and snippets.

@jkwade
Created March 22, 2019 16:26
Show Gist options
  • Save jkwade/71312043030533382c9b710ad008ef37 to your computer and use it in GitHub Desktop.
Save jkwade/71312043030533382c9b710ad008ef37 to your computer and use it in GitHub Desktop.
Jareaus-MacBook-Pro:~ jkwade$ curl https://finix.sandbox-payments-api.com/authorizations \
> -H "Content-Type: application/vnd.json+api" \
> -u US9B3AqAqaf6Jab9bzgBhaBU:4f81ec6a-0dff-4b06-a262-a34f757ad6ed \
> -d '
> {
> "merchant_identity": "IDtYboiBEsqMo9WqqCeswAXL",
> "currency": "USD",
> "amount": 889986,
> "source": "PIgM3PiQZsPUyhds2hZRgUGe",
> "tags": {
> "order_number": "21DFASJSAKAS"
> }
> }'
{
"total" : 1,
"_embedded" : {
"errors" : [ {
"logref" : "1eaa1b53-406b-4724-b98f-3e2dd1884500",
"message" : "Authorization 'AUfbJV7MHMX4B7m61SqQbcn' was declined. Cause: AVS Failure: no match",
"code" : "DECLINED",
"_links" : {
"self" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations"
},
"authorization" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations/AUfbJV7MHMX4B7m61SqQbcn"
}
}
} ]
}
}Jareaus-MacBook-Pro:~ jkwade$
Jareaus-MacBook-Pro:~ jkwade$ curl https://finix.sandbox-payments-api.com/authorizations -H "Content-Type: application/vnd.json+api" -u US9B3AqAqaf6Jab9bzgBhaBU:4f81ec6a-0dff-4b06-a262-a34f757ad6ed -d '
{
"merchant_identity": "IDtYboiBEsqMo9WqqCeswAXL",
"currency": "USD",
"amount": 889987,
"source": "PIgM3PiQZsPUyhds2hZRgUGe",
"tags": {
"order_number": "21DFASJSAKAS"
}
}'
{
"total" : 1,
"_embedded" : {
"errors" : [ {
"logref" : "ac62e2f7-6b5f-4ccc-ba52-13de275cedf3",
"message" : "Authorization 'AU84hJiyNVhq9RWe7nuV1Pf9' was declined. Cause: AVS Failure: no match",
"code" : "DECLINED",
"_links" : {
"self" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations"
},
"authorization" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations/AU84hJiyNVhq9RWe7nuV1Pf9"
}
}
} ]
}
}Jareaus-MacBook-Pro:~ jkwade$ curl https://finix.sandbox-payments-api.com/authorizations -H "Content-Type: application/vnd.json+api" -u US9B3AqAqaf6Jab9bzgBhaBU:4f81ec6a-0dff-4b06-a262-a34f757aded -d '
{
"merchant_identity": "IDtYboiBEsqMo9WqqCeswAXL",
"currency": "USD",
"amount": 889988,
"source": "PIgM3PiQZsPUyhds2hZRgUGe",
"tags": {
"order_number": "21DFASJSAKAS"
}
}'
{
"total" : 1,
"_embedded" : {
"errors" : [ {
"logref" : "1604d1ac-6bfa-433e-9084-3a03676c7561",
"message" : "Authorization 'AUs4XR89aQRCGGB8Jz6fm9Ny' was declined. Cause: AVS Failure: no match",
"code" : "DECLINED",
"_links" : {
"self" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations"
},
"authorization" : {
"href" : "https://finix.sandbox-payments-api.com/authorizations/AUs4XR89aQRCGGB8Jz6fm9Ny"
}
}
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment