---
updatedAt: 2025-06-16T23:24:16.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# /api/extension/hooks/Autoships.GetAutoshipBackupPayment

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Extension Hooks",
    "version": "extensionHooks"
  },
  "servers": [
    {
      "url": "https://{clientId}.corpadmin.directscalestage.com",
      "variables": {
        "clientId": {
          "default": "clientId"
        }
      }
    }
  ],
  "paths": {
    "/api/extension/hooks/Autoships.GetAutoshipBackupPayment": {
      "post": {
        "tags": [
          "AutoshipHooksCallback"
        ],
        "operationId": "AutoshipHooksCallback_GetAutoshipBackupPayment",
        "parameters": [
          {
            "name": "X-DirectScale-CallbackToken",
            "in": "header",
            "description": "One-time use token. This value is sent to the endpoint configured for the hook.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-DirectScale-User",
            "in": "header",
            "description": "Sets the User Context of the request when a username is provided",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Autoships.GetAutoshipBackupPaymentHookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Autoships.GetAutoshipBackupPaymentHookResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Extension_Token": []
          }
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "DirectScale.Disco.Extension.Address": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "integer",
            "format": "int32"
          },
          "AddressLine1": {
            "type": "string"
          },
          "AddressLine2": {
            "type": "string"
          },
          "AddressLine3": {
            "type": "string"
          },
          "City": {
            "type": "string"
          },
          "State": {
            "type": "string"
          },
          "PostalCode": {
            "type": "string"
          },
          "CountryCode": {
            "type": "string"
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Autoships.GetAutoshipBackupPaymentHookRequest": {
        "type": "object",
        "properties": {
          "AssociateId": {
            "type": "integer",
            "format": "int32"
          },
          "BackupMerchantId": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Autoships.GetAutoshipBackupPaymentHookResponse": {
        "type": "object",
        "properties": {
          "PaymentMethod": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.PaymentMethod"
          }
        }
      },
      "DirectScale.Disco.Extension.PaymentMethod": {
        "type": "object",
        "properties": {
          "PaymentId": {
            "type": "integer",
            "format": "int32"
          },
          "PaymentMethodId": {
            "type": "string"
          },
          "MerchantId": {
            "type": "integer",
            "format": "int32"
          },
          "CurrencyCode": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "FirstSix": {
            "type": "string"
          },
          "Ending": {
            "type": "string"
          },
          "Expires": {
            "type": "string",
            "format": "date-time"
          },
          "NameOnAccount": {
            "type": "string"
          },
          "IconClass": {
            "type": "string"
          },
          "CanDelete": {
            "type": "boolean"
          },
          "ProfileType": {
            "type": "string",
            "enum": [
              "Unknown",
              "DoNotSave",
              "Primary",
              "Secondary",
              "OneTimeUse",
              "Redirect"
            ]
          },
          "CanGetBalance": {
            "type": "boolean"
          },
          "AssociateId": {
            "type": "integer",
            "format": "int32"
          },
          "BillingInfo": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.PaymentMethodBillingInfo"
          }
        }
      },
      "DirectScale.Disco.Extension.PaymentMethodBillingInfo": {
        "type": "object",
        "properties": {
          "PaymentMethodId": {
            "type": "integer",
            "format": "int32"
          },
          "Address": {
            "$ref": "#/components/schemas/DirectScale.Disco.Extension.Address"
          },
          "FirstName": {
            "type": "string"
          },
          "LastName": {
            "type": "string"
          },
          "FullName": {
            "type": "string"
          },
          "EmailAddress": {
            "type": "string"
          },
          "PhoneNumber": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "Extension_Token": {
        "type": "apiKey",
        "description": "Bearer Token For Extension",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```