> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mycargoextra.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mycargoextra.com/_mcp/server.

# Delete Authorize.net Saved Card

DELETE http://localhost:9000/api/v1/billing/authorize/cards/{customerPaymentProfileId}

Deletes/deactivates a saved Authorize.net payment profile.

Path parameter: `customerPaymentProfileId`.

Response fields: success message and/or deleted card data from wallet service.

Possible errors:
- 400: Missing card profile - delete route did not include `customerPaymentProfileId`.
- 400: Please set your billing address to continue - billing address is required to add a card.
- 404: Billing address not found - saved billing address reference is invalid.
- 404: Saved card not found - card profile does not exist or is inactive.
- 400: Authorize.net card profile was not created - gateway did not return profile ids.
- 400: Missing One or More Required Parameters - required body/query fields were not supplied.
- 401: Unauthorized - token is missing, expired, invalid, or the account/token pair was not found.
- 403: Access denied - gateway traffic guard/rate policy blocked the request.
- 429: Too many requests - gateway rate limit exceeded.
- 500: Unexpected Error - unhandled gateway or downstream service failure.

Reference: https://docs.mycargoextra.com/cargo-extra-gateway-api-copy/billing/authorize/cards/customer-payment-profile-id/delete-authorize-net-saved-card

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/billing/authorize/cards/{customerPaymentProfileId}:
    delete:
      operationId: delete-authorize-net-saved-card
      summary: Delete Authorize.net Saved Card
      description: >-
        Deletes/deactivates a saved Authorize.net payment profile.


        Path parameter: `customerPaymentProfileId`.


        Response fields: success message and/or deleted card data from wallet
        service.


        Possible errors:

        - 400: Missing card profile - delete route did not include
        `customerPaymentProfileId`.

        - 400: Please set your billing address to continue - billing address is
        required to add a card.

        - 404: Billing address not found - saved billing address reference is
        invalid.

        - 404: Saved card not found - card profile does not exist or is
        inactive.

        - 400: Authorize.net card profile was not created - gateway did not
        return profile ids.

        - 400: Missing One or More Required Parameters - required body/query
        fields were not supplied.

        - 401: Unauthorized - token is missing, expired, invalid, or the
        account/token pair was not found.

        - 403: Access denied - gateway traffic guard/rate policy blocked the
        request.

        - 429: Too many requests - gateway rate limit exceeded.

        - 500: Unexpected Error - unhandled gateway or downstream service
        failure.
      tags:
        - >-
          subpackage_billing.subpackage_billing/authorize.subpackage_billing/authorize/cards.subpackage_billing/authorize/cards/customerPaymentProfileId
      parameters:
        - name: customerPaymentProfileId
          in: path
          description: CustomerPaymentProfileId path parameter.
          required: true
          schema:
            type: string
      responses:
        '204':
          description: No Content
          content:
            application/json:
              schema:
                type: object
                properties: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestBadRequestError
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestUnauthorizedError
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestForbiddenError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestNotFoundError
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestTooManyRequestsError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestInternalServerError
servers:
  - url: http://localhost:9000
    description: http://localhost:9000
components:
  schemas:
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestBadRequestError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestBadRequestError
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestUnauthorizedError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestUnauthorizedError
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestForbiddenError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestForbiddenError
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestNotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestNotFoundError
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestTooManyRequestsError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestTooManyRequestsError
    DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestInternalServerError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        DeleteApiV1BillingAuthorizeCardsCustomerpaymentprofileidRequestInternalServerError

```

## Examples



**SDK Code**

```python
import requests

url = "http://localhost:9000/api/v1/billing/authorize/cards/string"

response = requests.delete(url)

print(response.json())
```

```javascript
const url = 'http://localhost:9000/api/v1/billing/authorize/cards/string';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:9000/api/v1/billing/authorize/cards/string"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("http://localhost:9000/api/v1/billing/authorize/cards/string")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("http://localhost:9000/api/v1/billing/authorize/cards/string")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'http://localhost:9000/api/v1/billing/authorize/cards/string');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("http://localhost:9000/api/v1/billing/authorize/cards/string");
var request = new RestRequest(Method.DELETE);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:9000/api/v1/billing/authorize/cards/string")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```