Aukro WebAPI
doGetPostBuyFormsDataForSellers
This method allows sellers to load data from after-sale and related additional payment forms filled out by buyers. It also returns detailed payment data (made through PayU) related to the indicated transactions, information on a selected pick-up point and identification data on shipment containing products from particular transactions. If incorrect transaction identifiers or the ones which cannot be accessed by a logged-in user are provided in the input array, they are ignored when presenting output data (data are returned only for transaction identifiers considered correct and relating to the user being a session owner). Additionally - calling this method for a transaction in which a logged-in user has acted as a buyer will result in returning an empty structure.
-
sessionId | String | required
User's session identifier received using the doLogin(Enc) method. -
transactionsIdsArray | Long[]
Array of transaction and related additional payment identifiers (max. 25). Information on relation between an offer identifier and a transaction identifier can be obtained by the doGetTransactionsIDs method. -
zasilkovnaDeliveryPoint| Integer
If value is set (to 1) result contains selected pickup point of Zasilkovba (if is any selected).
-
postBuyFormData | PostBuyFormDataStruct[]
Array of structures containing information loaded from filled out after-sale forms.-
postBuyFormId | Long
Transaction identifier. -
postBuyFormItems | PostBuyFormItemStruct[]
Array of structures containing information on purchases made by a user in an offer.-
postBuyFormItQuantity | Integer
Number of items bought. -
postBuyFormItAmount | BigDecimal | required
Total price for all items bought in an offer. -
postBuyFormItId | Long
Offer identifier. -
postBuyFormItTitle | String | required
Offer title. -
postBuyFormItCountry | Integer
Country identifier. -
postBuyFormItPrice | BigDecimal | required
Price of a single item. -
postBuyFormItDeals | PostBuyFormItemDealsStruct[]
Array of structures containing information on purchases made by a user within an offer.-
dealId | Long
Identifier of a purchase transaction. -
dealFinalPrice | BigDecimal | required
Total purchase price (including discount). -
dealQuantity | Integer
Number of items bought. -
dealDate | OffsetDateTime | required
Date of purchase transaction. -
dealWasDiscounted | Boolean
Information whether any discount code has been used. -
dealVariant | PostBuyFormItemDealsVariantStruct
This structure returns information about an item variant selected by a buyer. This method will always return an empty structure.-
variantName | String | required
Name of a parameter with variants. -
variantValue | String | required
Parameter variant value.
-
variantName | String | required
-
dealId | Long
-
postBuyFormItQuantity | Integer
-
postBuyFormBuyerId | Long
Buyer's identifier. -
postBuyFormAmount | BigDecimal | required
Total price for all items bought (including delivery cost). -
postBuyFormPostageAmount | BigDecimal | required
Cost of a selected delivery method. -
postBuyFormInvoiceOption | Integer
Information whether a user wishes to receive an invoice (1 - yes, 0 - no). -
postBuyFormMsgToSeller | String | required
Content of a message to a seller. -
postBuyFormInvoiceData | PostBuyFormAddressStruct | required
Structure containing user data related to an invoice issuance (filled out when postBuyFormInvoiceOption = 1).-
postBuyFormAdrCountry | Integer
Country identifier. -
postBuyFormAdrStreet | String | required
Address of a pick-up point. -
postBuyFormAdrPostcode | String | required
Postal code of a pick-up point. -
postBuyFormAdrCity | String | required
City where a pick-up point is located. -
postBuyFormAdrFullName | String | required
pick-up point name. -
postBuyFormAdrCompany | String | required
Field not used (will always be empty). -
postBuyFormAdrPhone | String | required
User's mobile phone no. -
postBuyFormAdrNip | String | required
Field not used (will always be empty). -
postBuyFormCreatedDate | String | required
Date of filling out a form. -
postBuyFormAdrType | Integer
Field not used (will always be empty).
-
postBuyFormAdrCountry | Integer
-
postBuyFormShipmentAddress | PostBuyFormAddressStruct | required
Structure containing user's delivery address.-
postBuyFormAdrCountry | Integer
Country identifier. -
postBuyFormAdrStreet | String | required
Address of a pick-up point. -
postBuyFormAdrPostcode | String | required
Postal code of a pick-up point. -
postBuyFormAdrCity | String | required
City where a pick-up point is located. -
postBuyFormAdrFullName | String | required
pick-up point name. -
postBuyFormAdrCompany | String | required
Field not used (will always be empty). -
postBuyFormAdrPhone | String | required
User's mobile phone no. -
postBuyFormAdrNip | String | required
Field not used (will always be empty). -
postBuyFormCreatedDate | String | required
Date of filling out a form. -
postBuyFormAdrType | Integer
Field not used (will always be empty).
-
postBuyFormAdrCountry | Integer
-
postBuyFormPayType | String | required
Payment method type (corresponding with PayU - full list of types can be found in technical documentation of the service). Also types outside PayU can be returned: collect_on_delivery (COD), wire_transfer (Standard transfer – outside PayU system) and not_specified (for postBuyFormSentBySeller = 1). -
postBuyFormPayId | Long
Payment identifier. -
postBuyFormPayStatus | String | required
PayU transaction status. -
postBuyFormDateInit | String | required
Beginning date of a PayU transaction. -
postBuyFormDateRecv | String | required
Completion date of a PayU transaction. -
postBuyFormDateCancel | String | required
Cancellation date of a PayU transaction. -
postBuyFormShipmentId | Integer
Delivery method identifier (a list of delivery method identifiers can be obtained by using the doGetShipmentData method). -
postBuyFormGdAddress | PostBuyFormAddressStruct | required
Structure containing information on a pick-up point selected by a user.-
postBuyFormAdrCountry | Integer
Country identifier. -
postBuyFormAdrStreet | String | required
Address of a pick-up point. -
postBuyFormAdrPostcode | String | required
Postal code of a pick-up point. -
postBuyFormAdrCity | String | required
City where a pick-up point is located. -
postBuyFormAdrFullName | String | required
pick-up point name. -
postBuyFormAdrCompany | String | required
Field not used (will always be empty). -
postBuyFormAdrPhone | String | required
User's mobile phone no. -
postBuyFormAdrNip | String | required
Field not used (will always be empty). -
postBuyFormCreatedDate | String | required
Date of filling out a form. -
postBuyFormAdrType | Integer
Field not used (will always be empty).
-
postBuyFormAdrCountry | Integer
-
postBuyFormShipmentTracking | PostBuyFormShipmentTrackingStruct[]
Array of structures containing information on delivery.-
postBuyFormOperatorId | Integer
Identifier of a delivery operator (1 - UPS, 2 - GLS, 3 - Ruch, 4 - DHL, 5 - InPost, 6 - Poczta Polska, 7 - Siódemka, 8 - NovayaPochta [UA], 9 - DPD). -
postBuyFormPackageId | String | required
Parcel identifier. -
postBuyFormPackageStatus | String | required
Delivery status (taken from an operator).
-
postBuyFormOperatorId | Integer
-
postBuyFormSurchargesList | Long[]
Array of additional payment to related transaction identifiers. -
postBuyFormGdAdditionalInfo | String | required
Additional information related to a pick-up point. -
postBuyFormPaymentAmount | BigDecimal | required
Amount paid by a buyer via PayU. -
postBuyFormSentBySeller | Integer
Information which transaction party has filled out the after-sale form (0 - buyer, 1 - seller using Sendit.pl). -
postBuyFormBuyerLogin | String | required
Buyers name. -
postBuyFormBuyerEmail | String | required
Buyers e-mail address. -
zasilkovnaPickUpPoint | String
Value returned only if zasilkovnaDeliveryPoint in request is set. Id of selected pickup point and his address.
-
postBuyFormId | Long
-
ERR_INPUT_ARRAY_EMPTY
Array of transaction identifiers is empty. -
ERR_INPUT_ARRAY_OVERSIZED
The number of transaction identifiers exceeds the acceptable limit (max. 25). -
ERR_NEW_PAYMENT_INTERNAL_ERROR
Internal system error due to loading PayU transactions. -
ERR_NO_SESSION / ERR_SESSION_EXPIRED
Invalid session identifier or the session has expired. -
ERR_SURCHARGES_ONLY
Only IDs of additional payments have been provided. -
ERR_WEBAPI_KEY_INACTIVE
WebAPI key used to generate the session has been deactivated (the key owner has not accepted WebAPI User Agreement).