- Integracja własna
- Wstęp
- Strategia integracji
- Endpoints
- Autentyfikacja
- Szybka wycena
- Użytkownicy
- AddressBook
- Edit sender contact in address book
- Add sender contact in address book
- Delete sender contact from address book
- Edit receiver contact in address book
- Add receiver contact in address book
- Delete receiver contact from address book
- Get senders contacts from address book
- Get receiver contacts from address book
- Import sender contacts to address book
- Import receiver contacts to address book
- get company for user
- Update user currency
- User return carrier list
- Manage user return carrier list
- AddressBook
- Wycena ofertowa
- Słowniki
- Szablon przesyłki
- Payments
- AddressBook
- User
- Get user data
- Get user coupon data
- Register user
- Edit user
- Get company information
- Get user invoice list
- Get invoice
- Get compressed list of invoices
- Get invoice email
- Get account and payment statistics
- Get list of payment methods
- Get selected payment method
- Create selected payment method
- Remove selected payment method
- Get order statistics
- Get list of customs documents for the order
- Get list of options for saving user preferences
- Save user preferences
- Orders
Add template
Developing
Testing Env
https://test.api.globkurier.pl
Testing Env
https://test.api.globkurier.pl
POST
/v1/order/productTemplate
Request
Header Params
Accept-Language
string
optional
Example:
pl
X-Auth-Token
string
required
Body Params application/json
name
string
required
Example:
Testowy szablon
content
string
required
Example:
Elektronika
shipment
object
required
length
integer
required
Example:
1
width
integer
required
Example:
1
height
integer
required
Example:
1
weight
number
required
Example:
1
quantity
integer
required
Example:
1
productId
integer
required
Example:
605
senderAddress
object
required
name
string
required
Can contain the following special characters:
space . , ' ( ) - @
Example:
Testowy Nadawca
city
string
required
Can contain the following special characters:
space . ' ( ) - & /
Example:
Testowe Miasto
street
string
required
It can contain the following special characters:
space . ' - & / ,
If we want the address to be broken down by the API system, please do not pass the houseNumber and apartmentNumber parameters
Example:
Testowa Ulica
houseNumber
string
required
May contain the following special characters:
/
Example:
1x
apartmentNumber
string
optional
Example:
2a
postCode
string
required
Depends on the country, it is defined by the "has_post_codes" field in the /countries resource
Example:
01-001
countryId
integer
required
Example:
1
stateId
integer | null
optional
Can be checked using /order/customRequiredFields resource.
pointId
string | null
optional
Can be checked using /order/customRequiredFields resource.
Example:
phone
string
required
Example:
123123123
email
string
optional
Example:
testowy.nadawca@testowy.nadawca.pl
contactPerson
string
optional
Example:
Testowa Osoba
nip
string
optional
Example:
2532451081
receiverAddress
object
required
name
string
required
Can contain the following special characters:
space . , ' ( ) - @
Example:
Testowy Nadawca
city
string
required
Can contain the following special characters:
space . ' ( ) - & /
Example:
Testowe Miasto
street
string
required
It can contain the following special characters:
space . ' - & / ,
If we want the address to be broken down by the API system, please do not pass the houseNumber and apartmentNumber parameters
Example:
Testowa Ulica
houseNumber
string
required
May contain the following special characters:
/
Example:
1x
apartmentNumber
string
optional
Example:
2a
postCode
string
required
Depends on the country, it is defined by the "has_post_codes" field in the /countries resource
Example:
01-001
countryId
integer
required
Example:
1
stateId
integer | null
optional
Can be checked using /order/customRequiredFields resource.
pointId
string | null
optional
Can be checked using /order/customRequiredFields resource.
Example:
phone
string
required
Example:
123123123
email
string
optional
Example:
testowy.nadawca@testowy.nadawca.pl
contactPerson
string
optional
Example:
Testowa Osoba
nip
string
optional
Example:
2532451081
Example
{
"name": "Testowy szablon",
"content": "Elektronika",
"shipment": {
"length": 1,
"width": 1,
"height": 1,
"weight": 1,
"quantity": 1,
"productId": 605
},
"senderAddress": {
"name": "Testowy Nadawca",
"city": "Testowe Miasto",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"stateId": null,
"pointId": "",
"phone": "123123123",
"email": "testowy.nadawca@testowy.nadawca.pl",
"contactPerson": "Testowa Osoba"
},
"receiverAddress": {
"name": "Testowy Nadawca",
"city": "Testowe Miasto",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"stateId": null,
"pointId": "",
"phone": "123123123",
"email": "testowy.nadawca@testowy.nadawca.pl",
"contactPerson": "Testowa Osoba"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.api.globkurier.pl/v1/order/productTemplate' \
--header 'Accept-Language: pl' \
--header 'X-Auth-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Testowy szablon",
"content": "Elektronika",
"shipment": {
"length": 1,
"width": 1,
"height": 1,
"weight": 1,
"quantity": 1,
"productId": 605
},
"senderAddress": {
"name": "Testowy Nadawca",
"city": "Testowe Miasto",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"stateId": null,
"pointId": "",
"phone": "123123123",
"email": "testowy.nadawca@testowy.nadawca.pl",
"contactPerson": "Testowa Osoba"
},
"receiverAddress": {
"name": "Testowy Nadawca",
"city": "Testowe Miasto",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"stateId": null,
"pointId": "",
"phone": "123123123",
"email": "testowy.nadawca@testowy.nadawca.pl",
"contactPerson": "Testowa Osoba"
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-23 06:19:18