GlobKurier
  1. Payments
GlobKurier
  • Integracja własna
    • Wstęp
    • Strategia integracji
    • Endpoints
      • Autentyfikacja
        • Generate token
        • Refresh token
        • Remove token
      • Szybka wycena
        • Simplified order placement
        • Simplified order placement - new
      • 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
      • Wycena ofertowa
        • Get products
        • Get addons for product
        • Get discount code information
        • Get available courier arrival times to the sender for the shipment
        • Get payments
        • Get bank account numbers
        • Get order price
        • Get custom required fields
        • Create order
        • Partial order validation
        • Create order for courier pick up
      • Słowniki
        • Adresy
          • Get list of countries
          • Get states for country
          • Get shipment/receiving points
          • Get Polish addresses
          • Get list of cities
        • Przewoźnicy
          • Get available carrier list
        • Finanse
          • Get available currency list
          • Get available currency list Copy
        • Zamówienia
          • Get available order content
        • Agreements
          • Get agreements
      • Szablon przesyłki
        • Add template
        • Get tempalate list
        • Edit template
        • Delete template
      • Payments
        • Get list of available methods
          GET
        • Generate form data for online order payment
          POST
        • Prepaid top-up
          POST
        • Changing payment method for online order
          POST
      • AddressBook
        • Add sender contact to address book
        • Add receiver contact to address book
        • Get senders address book
        • Get receivers address book
        • Edit sender contact into address book
        • Edit receiver contact into address book
        • Delete sender contact from address book
        • Delete receiver contact from address book Copy
      • 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
        • Get order
        • Get list of orders for the protocol
        • Get protocol
        • Get labels
        • Get shipment statuses
  1. Payments

Prepaid top-up

Developing
Testing Env
https://test.api.globkurier.pl
Testing Env
https://test.api.globkurier.pl
POST
/v1/onlinePayment/generateForm/prepaidRecharge

Request

Header Params
Accept-Language
string 
optional
Example:
pl
X-Auth-Token
string 
required
Body Params application/json
onlinePaymentMethodId
integer 
optional
Payment method identifier taken from the /onlinePayments/methods resource. If the parameter is not provided, the API will return a payment link where the user will be able to choose their preferred payment method.
Example:
2
amount
number 
required
Amount
Example:
100
returnLink
string 
required
The default URL to which the user will be redirected after completing the payment process, regardless of its outcome (success or failure), in case the returnSuccessLink or returnFailureLink parameters are not provided.
Example:
https://test-url.com
returnSuccessLink
string 
optional
URL to which the user will be redirected after a successful payment on an external transaction page. If not provided, the user will be automatically redirected to the address specified in the returnLink parameter.
Example:
https://test-url.com/success
returnFailureLink
string 
optional
URL to which the user will be redirected in case of an unsuccessful payment on an external transaction page. If the parameter is not provided, the user will be automatically redirected to the address specified in the returnLink parameter.
Example:
https://test-url.com/failure
Example
{
    "onlinePaymentMethodId": 2,
    "amount": 100,
    "returnLink": "https://test-url.com",
    "returnSuccessLink": "https://test-url.com/success",
    "returnFailureLink": "https://test-url.com/failure"
}

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/onlinePayment/generateForm/prepaidRecharge' \
--header 'Accept-Language: pl' \
--header 'X-Auth-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "onlinePaymentMethodId": 2,
    "amount": 100,
    "returnLink": "https://test-url.com",
    "returnSuccessLink": "https://test-url.com/success",
    "returnFailureLink": "https://test-url.com/failure"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-05-23 07:58:54
Previous
Generate form data for online order payment
Next
Changing payment method for online order
Built with