---
updatedAt: 2026-10-20T10:43:13.000Z
agentTools:
  projectIndex: https://harbor-developers.owlpay.com/llms.txt
---

# Binding a new customer's card

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "OwlPay Harbor API",
    "description": "OwlPay Harbor API Documentation",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://harbor-sandbox.owlpay.com"
    }
  ],
  "tags": [
    {
      "name": "Customer's Cards",
      "description": "APIs for managing customer's linked cards."
    }
  ],
  "components": {
    "securitySchemes": {
      "default": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header",
        "description": "Please contact your customer service team to obtain your <b> API Key </b>."
      }
    }
  },
  "security": [
    {
      "default": []
    }
  ],
  "paths": {
    "/api/v1/customers/{customer_uuid}/cards": {
      "post": {
        "summary": "Binding a new customer's card",
        "operationId": "bindingANewCustomersCard",
        "description": "",
        "parameters": [
          {
            "in": "header",
            "name": "X-API-KEY",
            "description": "",
            "example": "{YOUR_API_KEY}",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "example": {
                    "data": {
                      "uuid": "card_abc123",
                      "object": "customer_card",
                      "customer_uuid": "cus_1234567890",
                      "status": "pending",
                      "last4_digits": null,
                      "card_company": null,
                      "expiration_month": null,
                      "expiration_year": null,
                      "pull_enabled": false,
                      "push_enabled": false,
                      "first_name": null,
                      "last_name": null,
                      "country_code": null,
                      "issuer_country_code": null,
                      "enabled": false,
                      "restricted": false,
                      "url": "https://card-bindning.example.com/bind/card_abc123",
                      "created_at": "2026-03-13T10:00:00+00:00",
                      "updated_at": "2026-03-13T10:00:00+00:00"
                    }
                  },
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "uuid": {
                          "type": "string",
                          "example": "card_abc123",
                          "description": "The unique identifier of the card."
                        },
                        "object": {
                          "type": "string",
                          "example": "customer_card",
                          "description": "Object type, always `customer_card`."
                        },
                        "customer_uuid": {
                          "type": "string",
                          "example": "cus_1234567890",
                          "description": "The UUID of the customer who owns this card."
                        },
                        "status": {
                          "type": "string",
                          "example": "pending",
                          "description": "Card status. `pending` until the customer completes binding."
                        },
                        "last4_digits": {
                          "type": "string",
                          "example": null,
                          "description": "Last 4 digits of the card number. `null` until binding is completed."
                        },
                        "card_company": {
                          "type": "string",
                          "example": null,
                          "description": "Card network (e.g. `Visa`, `Mastercard`). `null` until binding is completed."
                        },
                        "expiration_month": {
                          "type": "string",
                          "example": null,
                          "description": "Card expiration month, two digits (`01`-`12`). `null` until binding is completed."
                        },
                        "expiration_year": {
                          "type": "string",
                          "example": null,
                          "description": "Card expiration year, last two digits (e.g. `30` for 2030). `null` until binding is completed."
                        },
                        "pull_enabled": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether the card supports pull (debit) transactions."
                        },
                        "push_enabled": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether the card supports push (credit) transactions."
                        },
                        "first_name": {
                          "type": "string",
                          "example": null,
                          "description": "Cardholder first name. `null` until binding is completed."
                        },
                        "last_name": {
                          "type": "string",
                          "example": null,
                          "description": "Cardholder last name. `null` until binding is completed."
                        },
                        "country_code": {
                          "type": "string",
                          "example": null,
                          "description": "Cardholder country code (ISO 3166-1 alpha-2). `null` until binding is completed."
                        },
                        "issuer_country_code": {
                          "type": "string",
                          "example": null,
                          "description": "Card issuer country code (ISO 3166-1 alpha-2). `null` until binding is completed."
                        },
                        "enabled": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether the card is enabled. `false` until binding is completed."
                        },
                        "restricted": {
                          "type": "boolean",
                          "example": false,
                          "description": "Whether the card is restricted."
                        },
                        "url": {
                          "type": "string",
                          "example": "https://card-bindning.example.com/bind/card_abc123",
                          "description": "The card binding page URL. Open this URL to let the customer complete the card binding process. Becomes `null` once binding is completed (status is no longer `pending`)."
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2026-03-13T10:00:00+00:00",
                          "description": "ISO 8601 timestamp of card creation."
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2026-03-13T10:00:00+00:00",
                          "description": "ISO 8601 timestamp of last update."
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Customer's Cards"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "card_type": {
                    "type": "string",
                    "description": "",
                    "example": null,
                    "nullable": true
                  },
                  "redirect_url": {
                    "type": "object",
                    "description": "optional Redirect URLs after card binding completes.",
                    "example": {
                      "success": "https://example.com/card/success",
                      "failed": "myapp://card/failed"
                    },
                    "properties": {
                      "success": {
                        "type": "string",
                        "description": "optional URL to redirect on success. Supports web links or app deep links.",
                        "example": "https://example.com/card/success"
                      },
                      "failed": {
                        "type": "string",
                        "description": "optional URL to redirect on failure. Supports web links or app deep links.",
                        "example": "myapp://card/failed"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "parameters": [
        {
          "in": "path",
          "name": "customer_uuid",
          "description": "The ID of the customer.",
          "example": "cus_1234567890",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  }
}
```