Advertisement
Guest User

Untitled

a guest
Mar 9th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 1.84 KB | None | 0 0
  1. POST
  2. URL: https://stagingcloud.bmptest.de/api/billing/v1/companies/55f35cd0-8fab-42c2-90ee-e5b6c16e33c2/users/13fa6df2-7ecd-481b-abd8-ecf0ac670af4/paymentInstruments
  3. Content-Type: application/xml
  4. Body:
  5. <paymentInstrument>
  6.     <paymentMethod>KREDITKARTE</paymentMethod>
  7.     <billingAddress>
  8.         <firstName>Demo</firstName>
  9.         <lastName>User</lastName>
  10.         <street1>50 Grove St</street1>
  11.         <city>Somerville</city>
  12.         <country>US</country>
  13.         <state>MA</state>
  14.         <zip>02114</zip>
  15.         <phone>4159991100</phone>
  16.     </billingAddress>
  17.     <creditCard>
  18.         <name>Demo User</name>
  19.         <number>4111111111111111</number>
  20.         <expirationMonth>5</expirationMonth>
  21.         <expirationYear>2017</expirationYear>
  22.         <securityCode>111</securityCode>
  23.         <type>VISA</type>
  24.     </creditCard>
  25. </paymentInstrument>
  26.  
  27. Response:
  28.  
  29.  
  30.     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  31.     <paymentInstrument>
  32.     <id>47a5523a-6a53-44e8-bd2e-37ddb6bb8d7d</id>
  33.     <company id="55f35cd0-8fab-42c2-90ee-e5b6c16e33c2" href="https://stagingcloud.bmptest.de/api/account/v1/companies/55f35cd0-8fab-42c2-90ee-e5b6c16e33c2"/>
  34.     <user id="13fa6df2-7ecd-481b-abd8-ecf0ac670af4" href="https://stagingcloud.bmptest.de/api/account/v1/users/13fa6df2-7ecd-481b-abd8-ecf0ac670af4"/>
  35.     <paymentMethod>CREDIT_CARD</paymentMethod>
  36.     <billingAddress>
  37.     <city>Somerville</city>
  38.     <country>US</country>
  39.     <state>MA</state>
  40.     <street1>50 Grove St</street1>
  41.     <zip>02114</zip>
  42.     <firstName>Demo</firstName>
  43.     <lastName>User</lastName>
  44.     <phone>4159991100</phone>
  45.     </billingAddress>
  46.     <creditCard>
  47.     <name>Demo User</name>
  48.     <expirationMonth>5</expirationMonth>
  49.     <expirationYear>2017</expirationYear>
  50.     <type>VISA</type>
  51.     </creditCard>
  52.     <createdOn>2017-03-09T10:06:17.121Z</createdOn>
  53.     <isDefault>false</isDefault>
  54.     <parameters/>
  55.     </paymentInstrument>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement