Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST
- URL: https://stagingcloud.bmptest.de/api/billing/v1/companies/55f35cd0-8fab-42c2-90ee-e5b6c16e33c2/users/13fa6df2-7ecd-481b-abd8-ecf0ac670af4/paymentInstruments
- Content-Type: application/xml
- Body:
- <paymentInstrument>
- <paymentMethod>KREDITKARTE</paymentMethod>
- <billingAddress>
- <firstName>Demo</firstName>
- <lastName>User</lastName>
- <street1>50 Grove St</street1>
- <city>Somerville</city>
- <country>US</country>
- <state>MA</state>
- <zip>02114</zip>
- <phone>4159991100</phone>
- </billingAddress>
- <creditCard>
- <name>Demo User</name>
- <number>4111111111111111</number>
- <expirationMonth>5</expirationMonth>
- <expirationYear>2017</expirationYear>
- <securityCode>111</securityCode>
- <type>VISA</type>
- </creditCard>
- </paymentInstrument>
- Response:
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <paymentInstrument>
- <id>47a5523a-6a53-44e8-bd2e-37ddb6bb8d7d</id>
- <company id="55f35cd0-8fab-42c2-90ee-e5b6c16e33c2" href="https://stagingcloud.bmptest.de/api/account/v1/companies/55f35cd0-8fab-42c2-90ee-e5b6c16e33c2"/>
- <user id="13fa6df2-7ecd-481b-abd8-ecf0ac670af4" href="https://stagingcloud.bmptest.de/api/account/v1/users/13fa6df2-7ecd-481b-abd8-ecf0ac670af4"/>
- <paymentMethod>CREDIT_CARD</paymentMethod>
- <billingAddress>
- <city>Somerville</city>
- <country>US</country>
- <state>MA</state>
- <street1>50 Grove St</street1>
- <zip>02114</zip>
- <firstName>Demo</firstName>
- <lastName>User</lastName>
- <phone>4159991100</phone>
- </billingAddress>
- <creditCard>
- <name>Demo User</name>
- <expirationMonth>5</expirationMonth>
- <expirationYear>2017</expirationYear>
- <type>VISA</type>
- </creditCard>
- <createdOn>2017-03-09T10:06:17.121Z</createdOn>
- <isDefault>false</isDefault>
- <parameters/>
- </paymentInstrument>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement