{
  "x402Version": 2,
  "id": 40889,
  "slug": "40889",
  "resource": "https://lab.paidapis.net/api/invoice/create",
  "description": "Machine-to-machine invoicing: issue a signed invoice now (payerAddress, amountUsdc, optional lineItems/memo/dueBy); the payer settles it later at its own dynamically-priced /pay sub-resource, instead of paying synchronously like every other endpoint here.",
  "type": "http",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xf74f2020aC3d73F2Bf5ee0F8Bf635475eA881319",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "amountUsdc": {
            "type": "number"
          },
          "dueBy": {
            "type": "string"
          },
          "invoiceId": {
            "type": "string"
          },
          "payUrl": {
            "type": "string"
          },
          "payerAddress": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "signerAddress": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "paid"
            ],
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "amountUsdc": 0,
            "dueBy": "",
            "lineItems": "",
            "memo": "",
            "payerAddress": ""
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "amountUsdc": 0,
            "dueBy": "",
            "invoiceId": "",
            "payUrl": "",
            "payerAddress": "",
            "signature": "",
            "signerAddress": "",
            "status": "pending"
          },
          "type": "json"
        }
      },
      "schema": {
        "properties": {
          "input": {
            "properties": {
              "body": {
                "properties": {
                  "amountUsdc": {
                    "description": "Total amount due, in USDC.",
                    "type": "number"
                  },
                  "dueBy": {
                    "description": "ISO 8601 due date (default 7 days out).",
                    "type": "string"
                  },
                  "lineItems": {
                    "description": "JSON array of {\"description\",\"amountUsdc\"} objects, for record-keeping.",
                    "type": "string"
                  },
                  "memo": {
                    "description": "Free-text note.",
                    "type": "string"
                  },
                  "payerAddress": {
                    "description": "Wallet address expected to pay this invoice.",
                    "type": "string"
                  }
                },
                "required": [
                  "payerAddress",
                  "amountUsdc"
                ],
                "type": "object"
              }
            }
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "amountUsdc": {
                    "type": "number"
                  },
                  "dueBy": {
                    "type": "string"
                  },
                  "invoiceId": {
                    "type": "string"
                  },
                  "payUrl": {
                    "type": "string"
                  },
                  "payerAddress": {
                    "type": "string"
                  },
                  "signature": {
                    "type": "string"
                  },
                  "signerAddress": {
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "pending",
                      "paid"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_xdmnqyvi"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "lab.paidapis.net",
  "lastUpdated": "2026-09-13T23:13:41.702Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-13T23:13:41.435Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "amountUsdc": 0,
              "dueBy": "",
              "lineItems": "",
              "memo": "",
              "payerAddress": ""
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "amountUsdc": 0,
              "dueBy": "",
              "invoiceId": "",
              "payUrl": "",
              "payerAddress": "",
              "signature": "",
              "signerAddress": "",
              "status": "pending"
            },
            "type": "json"
          }
        },
        "schema": {
          "properties": {
            "input": {
              "properties": {
                "body": {
                  "properties": {
                    "amountUsdc": {
                      "description": "Total amount due, in USDC.",
                      "type": "number"
                    },
                    "dueBy": {
                      "description": "ISO 8601 due date (default 7 days out).",
                      "type": "string"
                    },
                    "lineItems": {
                      "description": "JSON array of {\"description\",\"amountUsdc\"} objects, for record-keeping.",
                      "type": "string"
                    },
                    "memo": {
                      "description": "Free-text note.",
                      "type": "string"
                    },
                    "payerAddress": {
                      "description": "Wallet address expected to pay this invoice.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "payerAddress",
                    "amountUsdc"
                  ],
                  "type": "object"
                }
              }
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "amountUsdc": {
                      "type": "number"
                    },
                    "dueBy": {
                      "type": "string"
                    },
                    "invoiceId": {
                      "type": "string"
                    },
                    "payUrl": {
                      "type": "string"
                    },
                    "payerAddress": {
                      "type": "string"
                    },
                    "signature": {
                      "type": "string"
                    },
                    "signerAddress": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "pending",
                        "paid"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_xdmnqyvi"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "lab.paidapis.net",
    "manifest_name": "lab.paidapis.net",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "amountUsdc": 0,
    "dueBy": "",
    "invoiceId": "",
    "payUrl": "",
    "payerAddress": "",
    "signature": "",
    "signerAddress": "",
    "status": "pending"
  }
}