openapi: 3.0.1 info: title: Huuray Balance Resend API description: Huuray API for B2B customers (last updated april 2025) contact: name: Support email: tech@huuray.com version: v4 tags: - name: Resend paths: /v4/Resend: post: tags: - Resend summary: Used to Resend Orders or Giftcards description: n/a parameters: - name: X-API-NONCE in: header description: A random value that can only be used once every 60 days. (max 50 characters)
(this prevents your message from being re-transmitted, and thereby also replay attacks) required: true - name: X-API-HASH in: header description: 'The SHA512 hash of a concatenated string containing the following: ( API-SECRET + NONCE ).
(this is used to authenticate you)' required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ResendRequest' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResendResponse' '206': description: Partial Content content: application/json: schema: $ref: '#/components/schemas/ResendResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/Response' '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Response' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/Response' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/Response' '422': description: Unprocessable Content content: application/json: schema: $ref: '#/components/schemas/Response' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/Response' security: - ApiToken: [] components: schemas: Response: type: object properties: Status: type: integer description: HttpStatus code for the response format: int32 Message: type: string description: Deprecated, use StatusMessage instead. Error message describing an error that occurred during the processing of the request nullable: true deprecated: true StatusMessage: type: string description: Status message describing an error that occurred during the processing of the request nullable: true additionalProperties: false description: The minimal possible response for any request ResendResponse: title: Resend Response type: object properties: NumberOfResends: type: integer description: Shows the number of successful Resends format: int32 nullable: true Status: type: integer description: HttpStatus code for the response format: int32 Message: type: string description: Deprecated, use StatusMessage instead. Error message describing an error that occurred during the processing of the request nullable: true deprecated: true StatusMessage: type: string description: Status message describing an error that occurred during the processing of the request nullable: true additionalProperties: false description: The response from a Resend request ResendRequest: title: Resend Request required: - OrderUID type: object properties: OrderUID: type: string description: The UID of the Order for the giftcards that you want to Resend VoucherID: type: integer description: The ID of the specific Voucher in the given Order that you want to Resend. If null is given, we will attempt to Resend the entire Order to all its receivers format: int32 nullable: true additionalProperties: false description: An object containing all the necessary information for resending a giftcard securitySchemes: ApiToken: type: apiKey description: The API-Token provided to you by Huuray. name: X-API-TOKEN in: header