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

email

Login to your InPost account(manager.paczkomaty.pl)

email=test@inpost.pl

Required

password

Login to your InPost account (manager.paczkomaty.pl)

password=Password123!@

Required

content

Structured xml code

content=

Required

 

Parameters in the paczkomat section:

Parameter

Description

Example

Validation

numberOfCodes

We provide the number of codes to be generated

<numberOfCodes>2</numberOfCodes>

Required

 

 

Parameters in the section return- Response from the API:

Parameter

Description

Example

code

Sending code

<code>3286125422</code>

active

Return code status (Only an active return code can be used at Parcel Locker to send a package)

<active>false</active>

uuid

-

<uuid>4822e2c0-b1af-4114-a315-110a7161d820</uuid>

labelAttached

-

<labelAttached>false</labelAttached>

 

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>