Generating a set of inactive codes
The function https://api.paczkomaty.pl/?do=revloggenerateinactivecodes is used to generate a set of inactive codes. Before handing over to the customer, the codes should be activated with the Inactive Code Activation method.
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 | Validation |
---|---|---|---|
| We provide the number of codes to be generated |
| Required |
Parameters in the section return
- Response from the API:
Parameter | Description | Example |
---|---|---|
| Sending code |
|
| Return code status (Only an active return code can be used at Parcel Locker to send a package) |
|
| - |
|
| - |
|
Request:
POST /?do=revloggenerateinactivecodes HTTP/1.1
Host: api.paczkomaty.pl
Content-Type: application/x-www-form-urlencoded
Content-Length: 124
email=test@inpost.pl&password=Password123!@&content=
<paczkomaty>
<numberOfCodes>2</numberOfCodes>
</paczkomaty>
|
Response:
<?xml version="1.0" encoding="UTF-8"?>
<paczkomaty>
<return>
<0>
<code>1414764219</code>
<active>false</active>
<uuid>12091fa7-61c0-4ebf-abf7-0fa80c53a3a5</uuid>
<labelAttached>false</labelAttached>
</0>
<1>
<code>2687720481</code>
<active>false</active>
<uuid>8bce4ad4-4249-4bcf-8f54-fb8c8b5f8e14</uuid>
<labelAttached>false</labelAttached>
</1>
</return>
</paczkomaty> |