Skip to content

Instantly share code, notes, and snippets.

@Zettersten
Last active August 29, 2015 14:07
Show Gist options
  • Save Zettersten/e0b2ea5b2a83471fa6cf to your computer and use it in GitHub Desktop.
Save Zettersten/e0b2ea5b2a83471fa6cf to your computer and use it in GitHub Desktop.
'ThePlatform' - Create Payment Instrument Request
/*
* Http Post
* Endpoint: https://www.etsemoney.com/hp/v3/adapaters
* Method: Create Payment Instrument
*/
/*
* Request Body
*/
{
"createPaymentInstrument" : {
"createPaymentInstrumentRequest" : {
"token" : "... Enter Token ...",
"account": "http://your.com/uri",
"name" : "Test User",
"properties" : {
"id" : "7725e700-c9c6-4f59-aae2-80dde88c4f1b"
}
}
}
}
/*
* Response Body
*/
{
"createPaymentInstrumentResponse":{
"paymentInstrumentRef":"... Your Payment Instrument ...",
"transactionReferenceCode":"d4ee2e03-35d8-4c6b-a276-60ac116e5967"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment