---
updatedAt: 2026-04-11T13:27:17.000Z
agentTools:
  projectIndex: https://forgingblock.readme.io/llms.txt
---

# Get order

Retrieves details for a single order by its identifier.

### Path Parameters

* `orderId` — Order UUID or merchant-defined `order_id`

***

### Query Parameters

* `checkout_page` — Page number for checkout sessions (default: `1`)

***

### Response Highlights

Each response includes the following **key fields**:

#### Payment & Status

* **status** — Order payment state
* **price\_amount** — Fiat amount of the order
* **price\_currency** — Fiat currency code
* **crypto\_amount** — Crypto amount received after invoice finalization

#### Payment URLs

* `invoice_url` — Single-use invoice (20-minute lifetime)
* `checkout_url` — Reusable checkout link
* `checkout_id` — Identifier of the checkout root

#### Checkout Sessions

* `is_checkout_template` — Indicates reusable checkout root
* `is_checkout_session` — Indicates derived checkout session
* `has_checkout_sessions` — Whether checkout sessions exist
* `checkout_sessions` — List of generated checkout sessions
* `checkout_sessions_pagination` — Pagination details for sessions

Each **checkout session** includes:

* `id`
* `status`
* `price_amount`
* `price_currency`
* `created_at`
* `expire_at`

#### Customer Information

* `customerInfo.email`
* `customerInfo.comment`

#### Shipping Information

* `customerInfo.shipping.firstName`
* `customerInfo.shipping.lastName`
* `customerInfo.shipping.address`
* `customerInfo.shipping.apartment`
* `customerInfo.shipping.city`
* `customerInfo.shipping.country`
* `customerInfo.shipping.postalCode`

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "ForgingBlock Payment API",
    "description": "API documentation",
    "version": "1.0.0"
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Authorization: Bearer YOUR_API_KEY",
        "bearerFormat": ""
      }
    }
  },
  "paths": {
    "/api/v1/orders/{orderId}": {
      "get": {
        "summary": "Get order",
        "tags": [
          "Orders"
        ],
        "description": "Retrieves details for a single order by its identifier.",
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            },
            "in": "query",
            "name": "checkout_page",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "in": "path",
            "name": "orderId",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "order_id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "price_currency": {
                      "type": "string"
                    },
                    "price_amount": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expire_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "invoice_url": {
                      "type": "string"
                    },
                    "checkout_url": {
                      "type": "string"
                    },
                    "checkout_id": {
                      "type": "string"
                    },
                    "is_checkout_template": {
                      "type": "boolean"
                    },
                    "is_checkout_session": {
                      "type": "boolean"
                    },
                    "has_checkout_sessions": {
                      "type": "boolean"
                    },
                    "checkout_sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "order_id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "price_amount": {
                            "type": "string"
                          },
                          "price_currency": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "expire_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "checkout_sessions_pagination": {
                      "type": "object",
                      "properties": {
                        "current_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "total_pages": {
                          "type": "integer"
                        }
                      }
                    },
                    "crypto_amount": {
                      "type": "string"
                    },
                    "crypto_overpaid_amount": {
                      "type": "string"
                    },
                    "crypto_underpaid_amount": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "callback_url": {
                      "type": "string"
                    },
                    "success_url": {
                      "type": "string"
                    },
                    "cancel_url": {
                      "type": "string"
                    },
                    "customerInfo": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string"
                        },
                        "comment": {
                          "type": "string"
                        },
                        "shipping": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "address": {
                              "type": "string"
                            },
                            "apartment": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "country": {
                              "type": "string"
                            },
                            "postalCode": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "watchers": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "blockchain_transactions": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                },
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "id": "9b414c9a-5d97-4773-b14b-8825b38817ac",
                      "order_id": "checkout-2cc6de67-ee60-4017-88f4-f68a8e61b53f",
                      "status": "completed",
                      "title": "Example Product Purchase",
                      "price_amount": "0.01000000",
                      "price_currency": "usd",
                      "created_at": "2026-03-05T22:04:13.236Z",
                      "expire_at": "2026-03-05T22:24:13.236Z",
                      "invoice_url": "https://api.forgingblock.io/api/v1/invoice?id=9b414c9a-5d97-4773-b14b-8825b38817ac",
                      "checkout_url": "",
                      "checkout_id": "",
                      "is_checkout_template": false,
                      "is_checkout_session": true,
                      "has_checkout_sessions": false,
                      "crypto_amount": "0.010000000000000000",
                      "crypto_overpaid_amount": "0.000000000000000000",
                      "crypto_underpaid_amount": "0.000000000000000000",
                      "description": "Payment description example",
                      "callback_url": "",
                      "success_url": "",
                      "cancel_url": "",
                      "customer_email": "test@fastmail.mx",
                      "customer_comment": "",
                      "shipping_first_name": "",
                      "shipping_last_name": "",
                      "shipping_address": "",
                      "shipping_apartment": "",
                      "shipping_city": "",
                      "shipping_country": "",
                      "shipping_postal_code": "",
                      "watchers": [
                        {
                          "jobId": "2fa84fe1674cc343f9520300c9c2997581280c6a18bdbc979717ea2cb819ba78",
                          "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
                          "holder": "0xc77c6A2Dd4A5F1387C280C73F3f1a58a51bBDb60",
                          "network": "base",
                          "decimals": 6,
                          "createdAt": "2026-03-05T22:04:13.236Z",
                          "lastBlock": null,
                          "cryptoAmount": "0.0100",
                          "startingBlock": 42979453
                        },
                        {
                          "jobId": "adb1c9b0c3da3b5251322f9b8bb5f7ed442cc0c280d86849b9a697fea6790aec",
                          "token": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
                          "holder": "0x07dbE9ed09B04a27e6315001889FdFa60849a2cF",
                          "network": "polygon",
                          "decimals": 6,
                          "createdAt": "2026-03-05T22:04:13.236Z",
                          "lastBlock": null,
                          "cryptoAmount": "0.0100",
                          "startingBlock": 83814112
                        }
                      ],
                      "blockchain_transactions": [
                        {
                          "hash": "0x4212875084352dfc7058a4edb6ecc08c045bd787846ba1188a127ea274550ec0",
                          "paid": "0.0001",
                          "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
                          "holder": "0xc77c6A2Dd4A5F1387C280C73F3f1a58a51bBDb60",
                          "network": "base",
                          "updatedAt": "2026-03-05T22:07:00.356Z",
                          "blockNumber": 42979523,
                          "transactions": [
                            "https://basescan.org/tx/0x4212875084352dfc7058a4edb6ecc08c045bd787846ba1188a127ea274550ec0"
                          ]
                        },
                        {
                          "hash": "0xeca62b1b7b9a6522419c2176948ccd82f96dc3e4bcb7428747cf6980c1d7fff0",
                          "paid": "0.0099",
                          "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
                          "holder": "0xc77c6A2Dd4A5F1387C280C73F3f1a58a51bBDb60",
                          "network": "base",
                          "updatedAt": "2026-03-05T22:11:00.444Z",
                          "blockNumber": 42979627,
                          "transactions": [
                            "https://basescan.org/tx/0xeca62b1b7b9a6522419c2176948ccd82f96dc3e4bcb7428747cf6980c1d7fff0"
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Unauthorized",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Order not found",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Order not found",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Order not found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Rate limit exceeded",
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 429
                    },
                    "error": {
                      "type": "string",
                      "example": "Too Many Requests"
                    },
                    "message": {
                      "type": "string",
                      "example": "Rate limit exceeded, retry in 2 minutes"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.forgingblock.io",
      "description": "ForgingBlock"
    }
  ],
  "x-readme": {
    "proxy-enabled": false,
    "explorer-enabled": true
  },
  "security": [
    {
      "Bearer": []
    }
  ]
}
```