- Created by Michał Machowski on Nov 30, 2022
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Current »
The https://api.paczkomaty.pl/?do=revloggetreportfunction allows you to generate a report that will return active codes and used codes along with the shipment status.
The data in the report is returned based on the creation date of the return code.
Parameters
Parameters to the function should be passed via the POST
method:
Parameter | Description | Example | Validation |
---|---|---|---|
| Login to your InPost account(manager.paczkomaty.pl) |
| Required |
| Login to your InPost account (manager.paczkomaty.pl) |
| Required |
| Structured xml code |
| Required |
Parameters in the paczkomat
section:
Parameter | Description | Example |
---|---|---|
| Has the return code been used? |
|
| The status of the return code (Only an active return code can be used at Parcel Locker to send a parcel) |
|
| 24 character shipment number |
|
| Return code |
|
| Unique code for example order. |
|
Parameters in the dateRange
section:
Parameter | Description | Example |
---|---|---|
| Initial Range Date |
|
| End Range Date |
|
Parameters in the paging
section:
Parameter | Description | Example |
---|---|---|
| Specifies the number of results displayed on the page. Maximum of 1000. |
|
| Used for paging, if a client has 2000 return codes in a given time interval and intends to download them all, he must first set |
|
Parameters in the section return
- Response from the API:
Parameter | Description | Example |
---|---|---|
| Email address of the account on which the return code was generated |
|
| Tracking number of the shipment |
|
| Sending code |
|
| Unique code e.g. order |
|
| Return code status (Only an active return code can be used at Parcel Locker to send a package) |
|
| Date the return code was used |
|
| Date the return code was created |
|
| Phone number of the sender of the return |
|
| Email address of the sender of the return |
|
| Current status of the package |
|
| Date of sending the current status of the package |
|
| - |
|
| Additional information visible on the label |
|
| Address data of the parcel delivery location |
|
| Expiration date of the code |
|
| Package size |
|
| Parcel size |
|
| Code status |
|
Request:
POST /?do=revloggetreport HTTP/1.1 Host: api.paczkomaty.pl Content-Type: application/x-www-form-urlencoded email=test@inpost.pl&password=Password123!@&content= <paczkomaty> <dateRange> <startDate>2022-09-20</startDate> <endDate>2022-10-20</endDate> </dateRange> <paging> <limit>1</limit> <offset>1</offset> </paging> |
Response:
<?xml version="1.0" encoding="UTF-8"?> <paczkomaty> <return> <count>6</count> <result> <operatorEmail>test@inpost.pl</operatorEmail> <reverseReturnPackCode>600000627283000026230130</reverseReturnPackCode> <code>9142375578</code> <rma>321</rma> <active>true</active> <usedDate>2022-10-01T07:30:40.865+02:00</usedDate> <creationDate>2022-09-30T14:07:45.468+02:00</creationDate> <senderPhone>333222111</senderPhone> <senderEmail>szybkie.zwroty@inpost.pl</senderEmail> <reverseReturnPackStatus>Sent</reverseReturnPackStatus> <reverseReturnPackStatusDate>2022-10-01T17:51:17.232+02:00</reverseReturnPackStatusDate> <labelAttached>false</labelAttached> <returnDescription1>Zamówienie:312</returnDescription1> <targetAddress> <buildingNo>10</buildingNo> <buldingNo>10</buldingNo> <email>test@inpost.pl</email> <flatNo>4</flatNo> <name>InPost</name> <phoneNum>321321321</phoneNum> <province>Mazowieckie</province> <street>Cybernetyki</street> <surName>Paczkomat</surName> <town>Warszawa</town> <zipCode>02-677</zipCode> </targetAddress> <expirationDate>2022-10-10T11:00:00+02:00</expirationDate> <packSize>A</packSize> <packType>A</packType> <valid>true</valid> </result> </return> </paczkomaty> |
- No labels