POST api/Compra?path={path}&empresa_id={empresa_id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
path | string |
Required |
|
empresa_id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BraspagConsPagtoName | Description | Type | Additional information |
---|---|---|---|
MerchantId | string |
None. |
|
MerchantOrderId | string |
None. |
|
IsSplitted | boolean |
None. |
|
Customer | Customer |
None. |
|
Payment | rPayment |
None. |
|
HTTPstatusCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "MerchantId": "sample string 1", "MerchantOrderId": "sample string 2", "IsSplitted": true, "Customer": { "Name": "sample string 1", "Identity": "sample string 2", "IdentityType": "sample string 3", "Email": "sample string 4", "Birthdate": "sample string 5", "Address": { "Street": "sample string 1", "Number": "sample string 2", "Complement": "sample string 3", "ZipCode": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "District": "sample string 8" }, "DeliveryAddress": { "Street": "sample string 1", "Number": "sample string 2", "Complement": "sample string 3", "ZipCode": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "District": "sample string 8" } }, "Payment": { "DebitCard": { "CardNumber": "sample string 1", "Holder": "sample string 2", "ExpirationDate": "sample string 3", "SecurityCode": "sample string 4", "Brand": "sample string 5", "SaveCard": true, "CardToken": "sample string 7" }, "ProofOfSale": "sample string 1", "Tid": "sample string 2", "AuthorizationCode": "sample string 3", "SplitPayments": [ { "SubordinateMerchantId": "sample string 1", "Amount": 2, "Fares": { "Mdr": 1.0, "Fee": 1 }, "Splits": [ { "MerchantId": "sample string 1", "Amount": 2 }, { "MerchantId": "sample string 1", "Amount": 2 } ] }, { "SubordinateMerchantId": "sample string 1", "Amount": 2, "Fares": { "Mdr": 1.0, "Fee": 1 }, "Splits": [ { "MerchantId": "sample string 1", "Amount": 2 }, { "MerchantId": "sample string 1", "Amount": 2 } ] } ], "Voids": [ {}, {} ], "Chargebacks": [ {}, {} ], "PaymentId": "sample string 4", "Type": "sample string 5", "Amount": 6, "ReceivedDate": "sample string 7", "CapturedAmount": 8, "CapturedDate": "sample string 9", "Currency": "sample string 10", "Country": "sample string 11", "ReturnCode": "sample string 12", "ReturnMessage": "sample string 13", "Status": 14, "Provider": "sample string 15", "Links": [ { "Method": "sample string 1", "Rel": "sample string 2", "Href": "sample string 3" }, { "Method": "sample string 1", "Rel": "sample string 2", "Href": "sample string 3" } ] }, "HTTPstatusCode": 4 }
application/xml, text/xml
Sample:
<BraspagConsPagto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Models"> <Customer> <Address> <City>sample string 5</City> <Complement>sample string 3</Complement> <Country>sample string 7</Country> <District>sample string 8</District> <Number>sample string 2</Number> <State>sample string 6</State> <Street>sample string 1</Street> <ZipCode>sample string 4</ZipCode> </Address> <Birthdate>sample string 5</Birthdate> <DeliveryAddress> <City>sample string 5</City> <Complement>sample string 3</Complement> <Country>sample string 7</Country> <District>sample string 8</District> <Number>sample string 2</Number> <State>sample string 6</State> <Street>sample string 1</Street> <ZipCode>sample string 4</ZipCode> </DeliveryAddress> <Email>sample string 4</Email> <Identity>sample string 2</Identity> <IdentityType>sample string 3</IdentityType> <Name>sample string 1</Name> </Customer> <HTTPstatusCode>4</HTTPstatusCode> <IsSplitted>true</IsSplitted> <MerchantId>sample string 1</MerchantId> <MerchantOrderId>sample string 2</MerchantOrderId> <Payment> <Amount>6</Amount> <AuthorizationCode>sample string 3</AuthorizationCode> <CapturedAmount>8</CapturedAmount> <CapturedDate>sample string 9</CapturedDate> <Chargebacks xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:anyType /> <d3p1:anyType /> </Chargebacks> <Country>sample string 11</Country> <Currency>sample string 10</Currency> <DebitCard> <Brand>sample string 5</Brand> <CardNumber>sample string 1</CardNumber> <CardToken>sample string 7</CardToken> <ExpirationDate>sample string 3</ExpirationDate> <Holder>sample string 2</Holder> <SaveCard>true</SaveCard> <SecurityCode>sample string 4</SecurityCode> </DebitCard> <Links> <Link> <Href>sample string 3</Href> <Method>sample string 1</Method> <Rel>sample string 2</Rel> </Link> <Link> <Href>sample string 3</Href> <Method>sample string 1</Method> <Rel>sample string 2</Rel> </Link> </Links> <PaymentId>sample string 4</PaymentId> <ProofOfSale>sample string 1</ProofOfSale> <Provider>sample string 15</Provider> <ReceivedDate>sample string 7</ReceivedDate> <ReturnCode>sample string 12</ReturnCode> <ReturnMessage>sample string 13</ReturnMessage> <SplitPayments> <SplitPayment> <Amount>2</Amount> <Fares> <Fee>1</Fee> <Mdr>1</Mdr> </Fares> <Splits> <Split> <Amount>2</Amount> <MerchantId>sample string 1</MerchantId> </Split> <Split> <Amount>2</Amount> <MerchantId>sample string 1</MerchantId> </Split> </Splits> <SubordinateMerchantId>sample string 1</SubordinateMerchantId> </SplitPayment> <SplitPayment> <Amount>2</Amount> <Fares> <Fee>1</Fee> <Mdr>1</Mdr> </Fares> <Splits> <Split> <Amount>2</Amount> <MerchantId>sample string 1</MerchantId> </Split> <Split> <Amount>2</Amount> <MerchantId>sample string 1</MerchantId> </Split> </Splits> <SubordinateMerchantId>sample string 1</SubordinateMerchantId> </SplitPayment> </SplitPayments> <Status>14</Status> <Tid>sample string 2</Tid> <Type>sample string 5</Type> <Voids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:anyType /> <d3p1:anyType /> </Voids> </Payment> </BraspagConsPagto>